Forums Register Login

web services

+Pie Number of slices to send: Send
how to build soap header using message context and Binding provider......?
+Pie Number of slices to send: Send
I'm not clear on what the message context and the binding provider have to do with setting headers. Have you gotten the SAAJ client to run which I pointed you to before? Its source code shows how to set SOAP headers. (Are you even still using SAAJ? Or maybe JAX-WS?)

Either way, provide us with more detail about what you're doing, and where you're stuck making progress.
+Pie Number of slices to send: Send
Hi ulf,

Thanks for your reply... what is the use of java classes that are genereated from wsdl file and using these classes how can i build soap body..?
+Pie Number of slices to send: Send
This question has nothing to do with the first question about adding SOAP headers, right? Just want to make sure I'm not missing some connection.

You can those Java classes to build a client for the WS described by the WSDL. They have all he code needed for creating the SOAP, sending it across the network, receiving the response and extracting the data form that.

using these classes how can i build soap body..?


As I mentioned in the previous paragraph, it is the code in those classes that create and read the SOAP - you (or rather, any code you write) would not be doing that. If you want to create SOAP directly (why?), then the SOAP client code I pointed you to repeatedly would be a starting point.

Your questions are a bit all over the place, so I'm having a hard time discerning what exactly it is you're trying to do. Are you following some introduction or tutorial? Do you have any client or server WS code so far?
+Pie Number of slices to send: Send
i dont know anything about SOAP. now i'm learning
+Pie Number of slices to send: Send
Then I again strongly advise you start by working through some tutorials; https://coderanch.com/how-to/java/WebServicesFaq points to several good starting points, like https://www.java.net/today/2003/11/05/ch4SOAP.pdf for learning about SOAP, http://oreilly.com/catalog/javawsian/chapter/ch03.pdf for learning about SAAJ, and https://www.java.net/print/219684 for learning about JAX-WS (which I recommend over SAAJ).
+Pie Number of slices to send: Send
Actullay i have java classes generated from the wsdl file. Now i have to link classes in the soap body... How to do it? please help me..............
+Pie Number of slices to send: Send
What does it mean to "link classes in the soap body"?
+Pie Number of slices to send: Send
in my project documentation there are classes that i have to link and send it to the server..
+Pie Number of slices to send: Send
I have no idea what might be meant by "linking classes". If this task has been given to you, you should ask the person from whom you got it.
look! it's a bird! it's a plane! It's .... a teeny tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 699 times.
Similar Threads
to Ray Lai: Best Practices/Patterns for web services
Help regarding web service security
Best book for SCDJWS
SCDJWS question about JAXR and soap
Sample Questions for 288 - Need answers
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:05:52.