Dims,

I created a bug report as requested: AXIS2-2638. I also attached the
WSDL but I wasn't sure what to do about the license option as the WSDL
is from a third party. I marked it as not licensed so hopefully that
will be ok.

Brad.

On 5/3/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
Brad,

Could you please log a bug in JIRA and upload your wsdl. Something is
seriously wrong esp with the StackOverflowError.

thanks,
dims

On 5/3/07, Brad <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've generated client classes from a WSDL doc using the following command 
line:
>
> wsdl2java.bat -pn xxxxxSoap -o src -d xmlbeans -uri xxxxxxx.wsdl
>
> It all works fine but when I try to invoke the remote service I get
> the following error:
>
> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> Request format is invalid: text/xml; charset=UTF-8.
> ;
>
> Which is fair enough as the server is expecting content type
> "application/x-www-form-urlencoded", as specified in the WSDL:
>
> <wsdl:operation name="xxxxx">
>     <http:operation location="/xxxxx"/>
>         <wsdl:input>
>              <mime:content type="application/x-www-form-urlencoded"/>
>         </wsdl:input>
>         <wsdl:output>
>             <mime:mimeXml part="Body"/>
>         </wsdl:output>
> </wsdl:operation>
>
> Is there any way to over ride the content type? I tried this:
>
>                         Options opts = new Options();
>                         opts.setProperty(Configuration.CONTENT_TYPE,
> HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
>                         opts.setProperty(HTTPConstants.CHUNKED, 
Boolean.FALSE);
>                         client.setOptions(opts);
>
> I get the same error though. I tried client.setOverrideOptions(opts)
> as well but no change. Using them both causes a StackOverflowError :-)
>
> Any help greatly appreciated!
>
> Cheers,
> Brad.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to