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 / August 2006

Tip: Looking for answers? Try searching our database.

soap and raw XML

Thread view: 
gelbeiche - 29 Aug 2006 22:39 GMT
Hi,

I have a question regarding the usage of webservices.
Our company offers some webservices which are generated from
our business logic classes.
Let us say we have an class X with a method doIt that have
a signature int doIt(int custNumber) the class X is marked for
generating a webservice from this class and the build process
does it.

The interface javax.xml.rpc.handler.Handler is implemented in a way
that every incoming and every outgoing webservice request is
logged in a database. The full soap envelope and soap body
is stored in the database as string.

I hope this introduction is enough to demonstrate my problem by
an example:
Assuming the webservice offers the creation of an order.
The webservice client requests the webservice and let say the creation
of the order fails.
Now we have an entry in the database with the SOAP message and
the information which method was requested.
And the wish is to rerun the order creation by rerun the webservice
request (in the role as webservice provider not the as the origin
requester). However the concrete parameter list of the webservice
request is now in an serialized form as String inside the database.
And my problem is: What must I do request the webservice with this raw
XML ?
Our build process also creates some client stub code. But the webservice
client code also expects a list of parameters like the method from our
business logic class from which the webservice code is created.

I think it must be possible to request the webservice with raw XML
because a SOAP::Lite client I wrote in perl is able to do it.
There I have two ways to request the webservice:
a) with a typed parameter list
b) with a raw XML string (which corresponds to the SOAP body)
Both works.

I would be happy about every code snippet !

Thomas
Arne Vajhøj - 30 Aug 2006 03:06 GMT
> Let us say we have an class X with a method doIt that have
> a signature int doIt(int custNumber) the class X is marked for
[quoted text clipped - 5 lines]
> logged in a database. The full soap envelope and soap body
> is stored in the database as string.

> Assuming the webservice offers the creation of an order.
> The webservice client requests the webservice and let say the creation
[quoted text clipped - 7 lines]
> And my problem is: What must I do request the webservice with this raw
> XML ?

> I think it must be possible to request the webservice with raw XML
> because a SOAP::Lite client I wrote in perl is able to do it.

You could use HttpURLConnection to do a POST of the raw
XML (I think you need to set one or two HTTP headers, but you
can sniff those with TCPMon).

Arne


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.