P
plork123
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
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