axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: Problem with Axis2-1.3+ADB+MTOM in complex type
Date Fri, 16 Nov 2007 05:25:08 GMT
hi,
here with I have attached a sample with worked fine. please try to run that and
see whether you are getting the reqeust and respose as I saved in the
messages folder.

make sure you use wstx-asl-3.2.1.jar as your stack parser.

amila.

On Nov 16, 2007 9:58 AM, Amila Suriarachchi <amilasuriarachchi@gmail.com> wrote:
> ok i'll work on this wsdl. Can you please send the request message as well?
>
> amila
>
>
>
> On Nov 15, 2007 10:52 AM, amit kumar <java2wsdl@yahoo.co.in> wrote:
> > Hi Amila
> >
> > I am attaching the wsdl file. following is the soap response I got.
> >
> >
> > - <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> >
> >
> > - <soapenv:Body>
> >
> >
> > - <soapenv:Fault>
> >
> >
> > - <soapenv:Code>
> >
> >
> >   <soapenv:Value>soapenv:Receiver</soapenv:Value>
> >   </soapenv:Code>
> >
> > - <soapenv:Reason>
> >
> >
> >   <soapenv:Text xml:lang="en-US">org.apache.axis2.databinding.ADBException:
> > Unexpected subelement fileName</soapenv:Text>
> >   </soapenv:Reason>
> >
> >   <soapenv:Detail />
> >   </soapenv:Fault>
> >   </soapenv:Body>
> >   </soapenv:Envelope>
> >
> >
> >
> > Amila Suriarachchi <amilasuriarachchi@gmail.com> wrote:
> > Can you send your request or response which gives this error and the
> > full wsdl file?
> > Can you try with a nighly build?
> >
> > Amila.
> >
> > On Nov 14, 2007 12:50 PM, amit kumar wrote:
> > > Hi
> > >
> > > I have a sample service for file upload. it takes complex type having
> > > fileName and fileData.I am using ADB. Environment is Eclipse, jre1.5,
> > tomcat
> > > 5, axis 2-1.3
> > >
> > >
> > >
> > > > type="xs:base64Binary"/>
> > > > type="xs:string"/>
> >
> > >
> > >
> > >
> > > I have enabled mtom both on client and server side.when I run the client
> > it
> > > gives me following exception.
> > >
> > > org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> > > Unexpected subelement fileName
> > > at
> > >
> > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
> > > at
> > >
> > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
> > > at
> > >
> > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
> > > at
> > >
> > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
> > > at
> > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> > > at com.test.client.MyServiceStub.uploadFile(MyServiceStub.java:178)
> > > at com.test.client.TestFileUpload.main(TestFileUpload.java:19)
> > >
> > > If I remove fileName from input it works fine. I think ADB is not able to
> > > handle any other parameter with binary data type in complex type. I tried
> > to
> > > change the sequence of complex type in wsdl and regenerated the client
> > side
> > > stuff then it started giving error for "binaryData".
> > >
> > >
> > >
> > > ________________________________
> > > Unlimited freedom, unlimited storage. Get it now
> >
> >
> >
> > --
> > Amila Suriarachchi,
> > WSO2 Inc.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >  ________________________________
> >  Chat on a cool, new interface. No download required. Click here.
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>



-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message