axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage" <>
Subject Re: [Axis2C]: query regarding wsdl file
Date Tue, 22 May 2007 12:57:28 GMT
Hi Yogender Singh,

As far as I know this WSDL is incorrect in two places.

1st the operation name of the porttype and the binding parts of the
wsd have to be same. (The both have to be either getname or getarray).

2nd it still complains saying "RPC-literal type message part parm
should have a type attribute".

So If you want a document style wsdl rename the style attribute just
inside the wsdl:binding element as in attached file "name_doc.wsdl"
and it works.

Or to have a 'rpc' style wsdl, you have to give names to the types in
the schema and associate message parts to it as in the


On 5/21/07, Yogender Singh01 <> wrote:
>  <<name.wsdl>>
> Hi all,
> I have written a wsdl file but when I am running WSDL2C on it its giving
> error.
> I have attached the wsdl file.
> Is it written correctly?
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : Error parsing WSDL
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
>         at org.apache.axis2.wsdl.WSDL2Code.main(
>         at org.apache.axis2.wsdl.WSDL2C.main(
> Caused by: org.apache.axis2.AxisFault
>         at org.apache.axis2.AxisFault.makeFault(
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(
>         at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
> llServices(
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
>         ... 2 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaF
> orPorttype(
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapp
> erSchema(
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
> ce(
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the
use of the addressee(s). If you are not the intended recipient, please notify the sender by
e-mail and delete the original message. Further, you are not to copy, disclose, or distribute
this e-mail or its contents to any other person and any such actions are unlawful. This e-mail
may contain viruses. Infosys has taken every reasonable precaution to minimize this risk,
but is not liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or attachment. Infosys
reserves the right to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys
e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message