Skip to main content

How to contruct SOAP XML using apache cxf framework

1 reply [Last post]
felixa
Offline
Joined: 2009-08-25
Points: 0

Hi,

I am new to SOAP protocol. Any one help me, how to contruct SOAP xml through my desktop java application using apache cxf framework.

Following is the sample soap xml, i want to know how to construct this soap xml using apache cxf (without wsdl) through my java application:

xxxxxxxx
xxxxx

http://xxxxxxxxxxxxx

http://xxxxxxxx
http://xxxxxxxxxxxxxx
http://xxxxxxxxxxxxxx
https://xxxxxxxxxxxxxxxx

xxxxxxxx

http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue

xxxxxxxxxxx

Thanks in advance.

Please reply as soon as possible.

-Felix

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
smox
Offline
Joined: 2009-04-15
Points: 0

Why would you not generate stub code using a wsdl, the whole point of using a framework such as CXF is to abstract away from having to write low level requests such as raw SOAP requests?

If you insist on writing the SOAP request yourself, i guess your could just use a low level HttpConnection and then use a Writer to write the request. That said, I would never go down that path. It is just not worth it!