Generally, if you don't have a schema/wsdl for the service, the best bet is 
the Dispatch clients.

http://cxf.apache.org/docs/jax-ws-dispatch-api.html

You can build up the message exactly as you need it and send it out.

Dan


On Tue August 25 2009 11:43:04 am Felix Anthony wrote:
> 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:
>
> <Envelope xmlns="http://www.w3.org/2003/05/soap-envelope";
> xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/06/secext";
> xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2006/10/policy";
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
>ty-utility-1.0.xsd" xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust";
> xmlns:sp="http://xxxxxxxxxxxxxxxxxxxx";
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";>
>
> <Header>
> <wsse:Security>
> <wsse:UsernameToken Id="user">
> <wsse:Username>xxxxxxxx</wsse:Username>
> <wsse:Password>xxxxx</wsse:Password>
> </wsse:UsernameToken>
> </wsse:Security>
> </Header>
> <Body>
> <sp:IssuedToken
> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/Inclu
>deToken/Always"> <sp:Issuer>
> <wsa:Address>http://xxxxxxxxxxxxx</wsa:Address>
> <wsa:ReferenceProperties>
> <mws:RPSCluster>http://xxxxxxxx</mws:RPSCluster>
> <mws:TOU>http://xxxxxxxxxxxxxx</mws:TOU>
> <mws:Privacy>http://xxxxxxxxxxxxxx</mws:Privacy>
> <mws:LiveIdSignUpUrl>https://xxxxxxxxxxxxxxxx</mws:LiveIdSignUpUrl>
> </wsa:ReferenceProperties>
> </sp:Issuer>
> <sp:RequestSecurityTokenTemplate>
> <wst:TokenType>xxxxxxxx</wst:TokenType>
> <wst:RequestType>
> http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue
> </wst:RequestType>
> <wsp:AppliesTo>
> <wsa:EndpointReference>
> <wsa:Address>xxxxxxxxxxx</wsa:Address>
> </wsa:EndpointReference>
> </wsp:AppliesTo>
> <wsp:PolicyReference URI="MBI_KEY_OLD"/>
> </sp:RequestSecurityTokenTemplate>
> </sp:IssuedToken>
> </Body> </Envelope>
>
> Thanks in advance.
>
> Please reply as soon as possible.

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to