Hi Abanindra,

 

Thanks for replying, well I am sending simple soap message without attachment.

Find below the Soap Message that is being sent is as below:

 

<< Start of SOAP Message >>

 

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"><soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-15830670"><wsu:Created>2006-08-24T11:44:45.078Z</wsu:Created><wsu:Expires>2006-08-24T11:49:45.078Z</wsu:Expires></wsu:Timestamp></wsse:Security><wsa:To>urn:GSO-System-Services:external:1.65:GatewaySecurityTokenService</wsa:To><wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:B409674211860D250111564198846251</wsa:MessageID><wsa:Action>http://schemas.xmlsoap.org/ws/2004/04/security/trust/RST/Issue</wsa:Action></soapenv:Header><soapenv:Body><wst:RequestSecurityToken xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:TokenType>urn:oasis:names:tc:SAML:1.0:assertion#Assertion</wst:TokenType><wst:RequestType>http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue</wst:RequestType><wst:Base><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Username>59P3LWN4WPLT</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">oblix123</wsse:Password><wsse:Nonce>n4ySv9BTS2MxXxOYReYnLA==</wsse:Nonce><wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2006-08-24T11:44:44Z</wsu:Created></wsse:UsernameToken></wst:Base><wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy"><wsa:EndpointReference><wsa:Address>urn:uk:gov:gateway:sso</wsa:Address></wsa:EndpointReference></wsp:AppliesTo><wst:Lifetime><wsu:Expires xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2006-08-24T15:30:44Z</wsu:Expires></wst:Lifetime></wst:RequestSecurityToken></soapenv:Body></soapenv:Envelope>

 

<< End of SOAP Message >>

 

The above SOAP request is required to receive SAML Assertion from a web service, which is written by third party and they have asked me to send SOAP request with Content-Type:text/xml to invoke that service.

So please let me know how can I change the value of Content-Type?

 

Best Regards,
Shyam Shukla


From: Sarkar, Abanindra [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 3:35 PM
To: Shyam Shukla ; [email protected]; [email protected]
Subject: RE: How to Modify Content-Type in axis2 1.0

 

Shyam,

 

 What type of SOAP messages are you sending? Is it with or without attachments? Normally the Content-type: multipart/related comes when you are sending a MIME message over SOAP. But, if you are sending a simple SOAP message the Content-Type will be text/xml.

 

 regards

Abanindra

 


From: Shyam Shukla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 3:31 PM
To: [email protected]; [email protected]
Subject: How to Modify Content-Type in axis2 1.0

Dear All,

 

I am reposting my problem as no one has replied me so far.

Please let me know if the problem mentioned in this email can be solved using axis2?

Thanks in Advance,

 

Best Regards,
Shyam Shukla


From: Shyam Shukla [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 10:43 AM
To: '[email protected]'
Subject: How to Modify Content-Type in axis2 1.0

 

Dear All,

 

I am working with axis2 1.0 to create SOAP request which in turn is sent over http.

 

By looking at the http header, I came to know about Content-type as below:

 

Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2DBFACA7A920E52A8511564198898121; type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml"; charset=UTF-8

 

Due to my project requirement, I want to keep the Content-Type: text/xml .

 

So please help me how can I set “Content-Type: text/xml” only.

 

Best Regards,
Shyam Shukla

 

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

Reply via email to