You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sascha Monteiro <sa...@hotmail.com> on 2005/07/14 07:42:39 UTC

org.apache.axis.types.Name

Hi,
I have used the wdsl2java and an element in a xsd;
<xsd:element name="name" type="axl:UniqueName128">
was represented as org.apache.axis.types.Name in my java stub.

But when I use the Port to send a SOAP message to my server I get an error
when I try to send S1/DS1-0@TESTVGW01 in the Name field

java.lang.IllegalArgumentException: Invalid Namedata=[S1/DS1-0@TESTVGW01]
        at org.apache.axis.types.Name.<init>(Name.java:47)

If I remove the / and @ it is accepted,
but these are URL friendly characters right?
I also tried to use hex values for the ascii, but no luck

Is this as designed, do I need to escape my characters in a different matter 
or is it a bug?

Thanks a lot
Sascha



types.Name Invalid Namedata

Posted by Sascha Monteiro <sa...@hotmail.com>.
Hi,
I have used the wdsl2java and an element in a xsd;
<xsd:element name="name" type="axl:UniqueName128">
was represented as org.apache.axis.types.Name in my java stub.

But when I use the Port to send a SOAP message to my server I get an error
when I try to send S1/DS1-0@TESTVGW01 in the Name field

java.lang.IllegalArgumentException: Invalid Namedata=[S1/DS1-0@TESTVGW01]
       at org.apache.axis.types.Name.<init>(Name.java:47)

If I remove the / and @ it is accepted, but I have to use the name with 
those characters,
but these are URL friendly characters right?
I also tried to use hex values for the ascii, but no luck

Is this as designed, do I need to escape my characters in a different matter
or is it a bug?

Thanks a lot
Sascha