byte[] help

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
 
T

tom fredriksen

plork123 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,144
Latest member
KetoBaseReviews
Top