Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

byte[] help

Thread view: 
plork123 - 09 Mar 2006 11:34 GMT
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
I've sorted this now


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.