Need HELP passing raw SOAP to JAX-RPC Web Service
Ive recently downloaded the web services development kit from the SUN site and have got all the examples to work fine.
What I am now trying to do is pass RAW SOAP to the HelloWorld JAX-RPC example,
Ive managed to get the service to call the sayHello function with no params which returns 'Hello NULL'.
I can't however get any parameters to be passed to the sayHello function,
Below is the existing SOAP ive got calling the function with no params.
<?xml version="1.0"?>
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><sayHello xmlns="http://hello.org/wsdl">?</sayHello></soap:Body></soap:Envelope>
If anybody could tell me what I need to replace ? with then I would be more than gratefull.
P.s If I changed the webservice to accept multiple arguments what would I need to put in my SOAP?
Yours,
Cris.
Here's the message sent when sayHello is called
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://caller.org/wsdl"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<env:Body>
<ns0:sayHello>
<String_1 xsi:type="xsd:string">some text</String_1>
</ns0:sayHello>
</env:Body>
</env:Envelope>
Thanks for your help on this one. However there is still one thing I don`t understand.
In the example SOAP I posted on the orignal message I have added the namespace ns1 pointing to
http://hello.org/wsdl
The example you posted goes to http://caller.org/wsdl
below is SOAP you posted for me.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://caller.org/wsdl"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<env:Body>
<ns0:sayHello>
<String_1 xsi:type="xsd:string">some text</String_1>
</ns0:sayHello>
</env:Body>
</env:Envelope>
This returns me an error! However If I change ns0 to point to http://hello.org/wsdl it all works perfectly.....
If you open a browser and go to http://hello.org/wsdl OR http://caller.org/wsdl neither URL points to anything!!!!!!! All the other namespaces used point to valid XML Schemas, which makes sense.
So how can this SOAP message work if the namespace ns0 is nothing?
Yours,
Cris.
Thanks for your help on this one. However there is still one thing I don`t understand.
In the example SOAP I posted on the orignal message I have added the namespace ns1 pointing to
http://hello.org/wsdl
The example you posted goes to http://caller.org/wsdl
below is SOAP you posted for me.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://caller.org/wsdl"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<env:Body>
<ns0:sayHello>
<String_1 xsi:type="xsd:string">some text</String_1>
</ns0:sayHello>
</env:Body>
</env:Envelope>
This returns me an error! However If I change ns0 to point to http://hello.org/wsdl it all works perfectly.....
If you open a browser and go to http://hello.org/wsdl OR http://caller.org/wsdl neither URL points to anything!!!!!!! All the other namespaces used point to valid XML Schemas, which makes sense.
So how can this SOAP message work if the namespace ns0 is nothing?
Yours,
Cris.
Thanks for your help on this one. However there is still one thing I don`t understand.
In the example SOAP I posted on the orignal message I have added the namespace ns1 pointing to
http://hello.org/wsdl
The example you posted goes to http://caller.org/wsdl
below is SOAP you posted for me.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://caller.org/wsdl"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<env:Body>
<ns0:sayHello>
<String_1 xsi:type="xsd:string">some text</String_1>
</ns0:sayHello>
</env:Body>
</env:Envelope>
This returns me an error! However If I change ns0 to point to http://hello.org/wsdl it all works perfectly.....
If you open a browser and go to http://hello.org/wsdl OR http://caller.org/wsdl neither URL points to anything!!!!!!! All the other namespaces used point to valid XML Schemas, which makes sense.
So how can this SOAP message work if the namespace ns0 is nothing?
Yours,
Cris.
SORRY TO WEBMASTERS FOR POSTING EXTRA MESSAGES IT WAS AN ACCIDENT!!!