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 Cella Laurent <la...@inexbee.com> on 2006/05/19 16:20:12 UTC

Retrieving Attachments in AXIS 2. rel 1.0

Hi Dear Axis Users and Contributors.

Before to create a JRA Issue about this topic, I prefer present it briefly
in a mail ( cause maybe this bug is not a bug but a misunderstanding ).

I developed a Service with AXIS 2 release 0.95 wich involves SOAP with
attachment requests.
To implement this, I used Axis 2 Online user guide :
http://ws.apache.org/axis2/0_95/mtom-guide.html

It works well except for encoding problems ( not the subject of this email
).
So with 0.95 it is ok. I got my attachments from a MessageContext property
and retrieving content ids in my input AXIOM element.

The problems occurs when i switched to release 1.0

I used the guide at this link :
http://ws.apache.org/axis2/1_0/mtom-guide.html

So there were packages refactoring, and now there is an Attachment class
wich replaces old MimeHelper.

When i have :
Attachments attachments = (Attachments)
msgcts.getProperty(MTOMConstants.ATTACHMENTS);
The result is null.

When i make :
for (Iterator it = msgcts.getProperties().keySet().iterator(); it.hasNext();
)
{
System.out.println("property name : " + (String)it.next());
}
I obtain nothing, the property map is empty.


I noticed the mechanism to transmit / build MessageContext seems to have
changed.
The method init( MessageContext ) is no longer used, and has been replaced
by setOperationContext(OperationContext oc).

I am using a client based on javax.mail and HttpClient packages.

I have tested the same requests with this client targeting a server using
0.95 API and its works fine, but, when I am targeting a server using 1.00
API no attachments in MessageContext transmitted.

All the configuration things seems the same...
If U consider it is worthy to submit a JRA about it with more concrete data,
fine.


Regards,

Laurent CELLA
Inexbee Software




 


 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Retrieving Attachments in AXIS 2. rel 1.0

Posted by Davanum Srinivas <da...@gmail.com>.
Yes, please add a JIRA.

thanks,
dims

On 5/19/06, Cella Laurent <la...@inexbee.com> wrote:
> Hi Dear Axis Users and Contributors.
>
> Before to create a JRA Issue about this topic, I prefer present it briefly
> in a mail ( cause maybe this bug is not a bug but a misunderstanding ).
>
> I developed a Service with AXIS 2 release 0.95 wich involves SOAP with
> attachment requests.
> To implement this, I used Axis 2 Online user guide :
> http://ws.apache.org/axis2/0_95/mtom-guide.html
>
> It works well except for encoding problems ( not the subject of this email
> ).
> So with 0.95 it is ok. I got my attachments from a MessageContext property
> and retrieving content ids in my input AXIOM element.
>
> The problems occurs when i switched to release 1.0
>
> I used the guide at this link :
> http://ws.apache.org/axis2/1_0/mtom-guide.html
>
> So there were packages refactoring, and now there is an Attachment class
> wich replaces old MimeHelper.
>
> When i have :
> Attachments attachments = (Attachments)
> msgcts.getProperty(MTOMConstants.ATTACHMENTS);
> The result is null.
>
> When i make :
> for (Iterator it = msgcts.getProperties().keySet().iterator(); it.hasNext();
> )
> {
> System.out.println("property name : " + (String)it.next());
> }
> I obtain nothing, the property map is empty.
>
>
> I noticed the mechanism to transmit / build MessageContext seems to have
> changed.
> The method init( MessageContext ) is no longer used, and has been replaced
> by setOperationContext(OperationContext oc).
>
> I am using a client based on javax.mail and HttpClient packages.
>
> I have tested the same requests with this client targeting a server using
> 0.95 API and its works fine, but, when I am targeting a server using 1.00
> API no attachments in MessageContext transmitted.
>
> All the configuration things seems the same...
> If U consider it is worthy to submit a JRA about it with more concrete data,
> fine.
>
>
> Regards,
>
> Laurent CELLA
> Inexbee Software
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://wso2.com/blogs/

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org