• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Conversion of message to SOAP in web service

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am a new bie to web services. I have developed a web service that takes as input two parameters and returns a string. My web service is working fine.

I just wanted to identify the flow of my web service. So, I had set the verbose value to true in my client and passed my parameters to my web service.

when the client is run, the parameters are converted into SOAP message by default and then sent to the web service.
This SOAP message is in the form of an XML.

Now my doubt is - when we say we can pass an XML to a web service, does it actually means the SOAP
message that is sent or is it that we can send a XML file itself to the web service. when we send an xml how is it wrapped into a SOAP message.

Sorry if this is a very basic question. I tried to google this but could not get a clear answer.

Thanks in advance
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Murugeson Shanthi:
Now my doubt is - when we say we can pass an XML to a web service, does it actually means the SOAP message that is sent or is it that we can send a XML file itself to the web service. when we send an xml how is it wrapped into a SOAP message.



If you are communicating with a SOAP web service then any message to/from the SOAP web service is a SOAP envelope (or MIME envelope wrapping the SOAP envelope if the service supports attachments). So if you are sending arbitrary XML to a SOAP web service then that XML (payload) will be inside a SOAP envelope.

Other non-SOAP web services can accept/send XML without a SOAP envelope. This is usually referred to as POX over HTTP (Plain Old XML) but it isn't SOAP.
[ February 18, 2008: Message edited by: Peer Reynders ]
 
Krithi Raghu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Peer.

I am currently working in weblogic6.1 SP6 and would like to pass an xml to my web service. But i read in the docs that a non built-in data type is not supported in weblogic 6.1 and serialization is also not possible. Just to confirm... is it possible to send a xml file to a web service in weblogic 6.1?

If I need to send an xml how could it possibly be done? I am totally confused with this...

Please help me.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Weblogic 6.1 web service support is pretty much outdated.
Overview of WebLogic Web Services

It seems to be based on a library that is similar to to Apache SOAP (which isn't even available for download any more). These libraries were pretty much assuming that you were building/parsing the SOAP message on the spot; so using it to send/receive an XML document could possibly be quite tedious.

One alternative is to try to get Axis 1.x working with it (There are some issues with WL 8.1 Step 2: Setting up the libraries: WebLogic 8.1, don't know about 6.1) and use its Message service style.

The other alternative is to find an SAAJ library (look in the Axis 1.x distribution) that works with WL 6.1 and build an SAAJ Servlet as described in SAAJ (pdf) (from Java Web Services in a Nutshell).

Either of these will take some determination to get working. Just google for WebLogic 6.1 SAAJ and WebLogic 6.1 Axis to see the various problems that people have encountered and how they have worked around them.
[ February 20, 2008: Message edited by: Peer Reynders ]
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic