aspose file tools*
The moose likes Web Services and the fly likes how to xsi:type attribute for elements in soap message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to xsi:type attribute for elements in soap message " Watch "how to xsi:type attribute for elements in soap message " New topic
Author

how to xsi:type attribute for elements in soap message

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

I have a web service developed using .NET and I trying to consume it
using AXIS 1.2.1 Final. When I request the service I am getting
"org.xml.sax.SAXParseException ocument root element is missing"
AxisFault from the service. I was suggest that because of lack of
"xsi:type=xsd:string" in the request soap message generated by Axis
client I am getting this exception from the service and so I want to
have "xsi:type=xsd:string" for each of elements in the generated soap
message from axis client, and I have tried this piece of code
"_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
Boolean.FALSE);" in the axis generated stubs (out of wsdl) but this
did not help me. I have also tried "<parameter name=sendXsiTypes
value=true/>" in client-config.wsdd file and this also is of no use.
Can anyone please clarify on how to generatexsi:type="xsd:string" for
each of the elements in the request soap
message from axis 1.2.1 final to .net web service.


Thanks & Regards,


RR Kumaran
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to xsi:type attribute for elements in soap message
 
Similar Threads
selecting encoding style of soapenc vs xsd
setting namespaces in SOAP request payload from a java client
axis
This weeks book giveaway
Conversion of Raw Soap Response Into HTML