You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Joe White <Jo...@eyefinity.com> on 2010/02/04 19:59:08 UTC

xml payload

I'm calling a SOAP service and one of the input methods is a String
object.

The problem I'm having is that this String object, is actually an xml
document.

When Axis attempts to send to payload, it's encoding all of the special
characters IE <xml version="1.0" encoding="UTF-8"> etc..

Is being send over encoded. &lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;

 

How can I tell the Apache Engine to NOT encode this? The server I'm
talking to is having issues ciphering the data because of this.

 

 

 


MailGate.vsp.com made the following annotations
---------------------------------------------------------------------
NOTICE: This message is intended only for the individual to whom it is addressed and may contain information that is confidential or privileged. If you are not the intended recipient, or the employee or person responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution, copying or use is strictly prohibited. If you have received this communication in error, please notify the sender and destroy or delete this communication immediately.
---------------------------------------------------------------------


[Axis2 not handling multipart/related response with type not given]

Posted by Anish P S <an...@cs-techno.com>.
Axis2 not handling multipart/related response with type not given 

for ex:
HTTP/1.1 200 OK 

Date: Thu, 15 Feb 2007 11:04:37 GMT 

Server: Unknown 

Servlet-Engine: Unknown (Servlet 2.2; JSP 1.1) 

Content-Type: multipart/related; boundary="----=_Part_2138_31489537.1265354819888";


Need to tweak Axis2 kernal code org.apache.axis2.builder.Mimebuilder.java to process the response and download the attachments properly...

Code snippet added for adding type 

if(contentType.indexOf("multipart/related")>-1 && contentType.indexOf("type=")==-1){
      contentType=contentType+"; type=\"text/xml\"";
     }

contentType:multipart/related; boundary="----=_Part_2138_31489537.1265354819888"; type="text/xml";

i dont know whether there is another way to do this...

if so please let me know...




Regards,
Anish P S
CS-Techno Pvt Ltd
Cochin,India
Mob:9539299747
www.cs-techno.com

Re: xml payload

Posted by Amila Suriarachchi <am...@gmail.com>.
On Fri, Feb 5, 2010 at 12:29 AM, Joe White <Jo...@eyefinity.com> wrote:

>  I’m calling a SOAP service and one of the input methods is a String
> object.
>
> The problem I’m having is that this String object, is actually an xml
> document.
>
> When Axis attempts to send to payload, it’s encoding all of the special
> characters IE <xml version=”1.0” encoding=”UTF-8”> etc..
>
> Is being send over encoded. &lt;?xml version=&quot;1.0&quot;
> encoding=&quot;UTF-8&quot;?&gt;
>

In fact this is the correct way to do it. if you use Axis2 try to build an
Axiom Object from the string and attached it.

thanks,
Amila.

>
>
> How can I tell the Apache Engine to NOT encode this? The server I’m talking
> to is having issues ciphering the data because of this.
>
>
>
>
>
>
>
> MailGate.vsp.com made the following annotations
> ---------------------------------------------------------------------
> NOTICE: This message is intended only for the individual to whom it is
> addressed and may contain information that is confidential or privileged. If
> you are not the intended recipient, or the employee or person responsible
> for delivering it to the intended recipient, you are hereby notified that
> any dissemination, distribution, copying or use is strictly prohibited. If
> you have received this communication in error, please notify the sender and
> destroy or delete this communication immediately.
> ---------------------------------------------------------------------
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/