On Aug 8, 5:47 pm, "Mike Schilling" <mscottschill...@hotmail.com>
wrote:
zigzag...@yahoo.com wrote:
I am using AXIS 2 1.4. I have written a client using AXIS2 which
calls
a =
third party web service written using Webmethods (not AXIS).
I am using AXIOM API. When I look at the SOAP message sent:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope =
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body><tns:TestRPC =
xmlns:tns="http://10.35.16.31/"><tns:Input1>test100</tns:Input1></
tns:T=
estRPC></soapenv:Body></soapenv:Envelope>
It only has
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope
in =
SOAP Enevelope.
I want to add xsd and xsi namespaces
<soapenv:Envelope =
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" =
xmlns:xsd="http://www.w3.org/2001/XMLSchema" =
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" =
xmlns:pu0="http://10.35.16.31/
PU023_QM_TrackWise_V1.TrackWise_to_SAP.ma=
ps">
How do I do it using AXIOM API. Apprecaite any pointers.
If anything in the message needs the xsi or xsd namespaces,
they'll
already be defined. If not, they serve no purpose. What are you
trying to accomplish?- Hide quoted text -
- Show quoted text -
Thanks. Not sure what you mean by alreday defined. I am writing
client
code from Scartch using AXIOM. By default it does not include xsd
and
xsi namespaces.
OMElement helloWorldPayload = helloWorldPayload("test1234");
Options options = new Options();
System.out.println("getSoapVersionURI:" +
options.getSoapVersionURI());
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
sender.sendReceive(helloWorldPayload);
when I use tcpmon to see messages going thorugh, it does not show
xsd
and xsi namespaces.., so they are no part of SOAP message sent by
AXIS2, but my third party web service requires them.
That's what I don't understand. The only way a web service would
namespaces would already be defined. Let me take a wild guess: is