hi all i'm trying to call a web service who's wsdl is like this
part of it
<element name="compress">
<complexType>
<sequence>
<element name="string" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="compressResponse">
<complexType>
<sequence>
<element name="compressReturn" type="xsd:base64Binary"/>
</sequence>
</complexType>
</element>
<element name="uncompress">
<complexType>
<sequence>
<element name="bytes" type="xsd:base64Binary"/>
</sequence>
</complexType>
</element>
<element name="uncompressResponse">
<complexType>
<sequence>
<element name="uncompressReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
to call compress i'm doing this
String uncompressed = "some string in here";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName("compress");
byte[] a = ((String)call.invoke(new Object[]
{uncompressed})).getBytes();
then i'm using 'a' to pass to the next call but this hangs
Service service1 = new Service();
Call call1 = (Call) service1.createCall();
call1.setTargetEndpointAddress(endpoint);
call1.setOperationName("uncompress");
String st = (String) call1.invoke(new Object[] {a});
Can someone please help me and tell me where i'm going wrong
many thanks
tom fredriksen - 09 Mar 2006 22:45 GMT
> Can someone please help me and tell me where i'm going wrong
There is not information to work with here... what web service library
are you using? that might help
other than that I can only suggest attacking it by a divide and conquer
approach, f.ex is it the server or client which causes the hang. You
could perhaps debug the thread to see what is going on.
/tom
plork123 - 10 Mar 2006 08:43 GMT