Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web services that invokes web services

 
Guadalupe Ortiz
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did anybody developes a web service that invokes other web service with the tool jwsdp1.3??
thanks in advance
gobellot
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Guadalupe Ortiz:
Did anybody developes a web service that invokes other web service with the tool jwsdp1.3??
thanks in advance
gobellot

Well i don't my reply would help you, But I have done that using apache axis. It just another program call, shouldn't be much different in jwsdp.
whats your problem here ?
 
Guadalupe Ortiz
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My problem is:
I�ve got a web service A developed and deployed
I�ve got my web service B that invokes A and it�s suposly well developed and deployed
And then I�ve got my client C that invokes B.
When I invoke C it return an error in the point it tries to invoke A, as it couldnt find it.
When I normally invoke a web service i develope a client, but in the case of B i havent developed a client to invoke A, I do the invocation from the service code. Is taht OK?
thank-you very much for yur answer
gobellot
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the error message!.
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Guadalupe Ortiz:
My problem is:
When I normally invoke a web service i develope a client, but in the case of B i havent developed a client to invoke A, I do the invocation from the service code. Is taht OK?
thank-you very much for yur answer
gobellot

in you case, webservice B acts as a client to invoke webservice A. There is no problem with such kind of scenarios and I have also done this using apache axis.
Regards
 
Guadalupe Ortiz
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error I`ve got is:
" [java] java.rmi.ServerException: JAXRPC.TIE.04: Internal Server Error (JAXRPC.TIE.01: caught exception while handling request: java.lang.NullPointerException)
[java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:372)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:224)
[java] at hotelDstub.HotelDIF_Stub.searchHotelD(HotelDIF_Stub.java:67)
[java] at hotelDstub.HotelClient.main(Unknown Source)"
Where HotelDstub is the final client and HotelDIF_Stub is the serice "B", that is the service that is invoked from the client and that invokes other service(A)
SearcHotelD is the only opration of the service "B"
Any clue?
thanks in advance
gobellot
 
Guadalupe Ortiz
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I`VE GOT IT!!!
I dont know where it was the problem but it seems it was not in the "invocation between web services". Suddenly I decided to begin by the begining again and this time worked. I�m really sorry if i bother you with nonsenses and I`m really gratefull for your help
gobellot
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Guadalupe Ortiz:
I`VE GOT IT!!!
I dont know where it was the problem but it seems it was not in the "invocation between web services". Suddenly I decided to begin by the begining again and this time worked. I�m really sorry if i bother you with nonsenses and I`m really gratefull for your help
gobellot

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic