R
Rafa Llarena
Hi,
I'm writting a code in C# which needs to consume a Java-written web service.
This service was written in a RPC/Literal way, so I've used a tool I found
(r2d) to transform the RPC/Literal wsdl into a Document/Literal, and from
this wsdl I've generated the proxy class using wsdl.exe.
The request works correctly, and the Java service returns the results I
expect (I inspect the SOAP packet), but I'm not able to get the results out
of this reponse. This is the reponse I get:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<MethodResponse xmlns="urn:Mywebservices">
<response xmlns="">
<result>1</result>
</response>
</MethodResponse>
</soapenv:Body>
</soapenv:Envelope>
The web method is called by a method generated by wsdl.exe and his return
value is a MethodReponse object (MethodReponse class was also generated by
wsdl.exe), but the object returned by this method is not like the one I've
received (the one I expect regarding the SOAP reponse with the a "1" in the
result field).
It is an uninitialized object.
Where could the problem be found?
I hope I've explained myself properly.
Rafa Llarena
I'm writting a code in C# which needs to consume a Java-written web service.
This service was written in a RPC/Literal way, so I've used a tool I found
(r2d) to transform the RPC/Literal wsdl into a Document/Literal, and from
this wsdl I've generated the proxy class using wsdl.exe.
The request works correctly, and the Java service returns the results I
expect (I inspect the SOAP packet), but I'm not able to get the results out
of this reponse. This is the reponse I get:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<MethodResponse xmlns="urn:Mywebservices">
<response xmlns="">
<result>1</result>
</response>
</MethodResponse>
</soapenv:Body>
</soapenv:Envelope>
The web method is called by a method generated by wsdl.exe and his return
value is a MethodReponse object (MethodReponse class was also generated by
wsdl.exe), but the object returned by this method is not like the one I've
received (the one I expect regarding the SOAP reponse with the a "1" in the
result field).
It is an uninitialized object.
Where could the problem be found?
I hope I've explained myself properly.
Rafa Llarena