I fixed the BookQuote2.wsdl . Looks like ADB binding works fine.
XMLBeans databinding is broken. Could you please log a JIRA bug?

thanks,
dims

On 11/1/06, Cox, Brian (GE Infra, Energy) <[EMAIL PROTECTED]> wrote:
I appreciate your help with this I went to the links and retrieved the updated wsdl's.  
Unfortunately problems remain.   I believe the BookQuote2.wsdl needs the namespace used 
to define the schema added, i.e. 
xmlns:types="http://www.Monson-Haefel.com/jwsbook/BookQuote/xsd";

Also, when I generate the source code using the following parameters:

> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client

I receive the synchronous method:

/**
* Auto generated method signature
* @see com.ems.client.BookQuoteService#getBookPriceNonRobust
* @param param4
*/
public 
com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument 
getBookPriceNonRobust(

com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
throws java.rmi.RemoteException

{
.
.

//Style is Doc.
.
.
}

Notice the exception is not the one we defined in the wsdl.  The source file 
InvalidIsbnFaultException.java is generated in the target directory with the 
stub though.  Also, there is a comment which leads me to believe that codegen 
thinks the wsdl is doc/literal.  These anomalies occur in both BookQuote.wsdl 
and BookQuote2.wsdl.

Thanks again.

Brian


 -----Original Message-----
From:   Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent:   Wednesday, November 01, 2006 3:30 PM
To:     [email protected]
Subject:        Re: Axis2 Codegen Problem?

Brian,

There were problems with those 2 wsdl's. Please see the following URL's:
http://svn.apache.org/viewvc?view=rev&revision=470082
http://issues.apache.org/jira/browse/AXIS2-1544

The new wsdl that you can use to start from will be in the nightly in
a couple of hours. Or you can grab RC2 tomorrow (cross my fingers!)

thanks,
dims

On 11/1/06, Cox, Brian (GE Infra, Energy) <[EMAIL PROTECTED]> wrote:
> I seem to be having problems generating the source code for the attached rpc 
wsdl.  I believe the wsdl to be correct, however, I wouldn't rule it out.  The 
wsdl is a modified version of the standard BookQuote wsdl.  I added an additional 
fault and changed the return data types from xsd:anyType to xsd:string.  When I 
generate I receive the exception below[1]:
>
> I have found through testing that if I change the two fault data types back 
to anyType the code will generate, however, only one fault is generated and it 
always seems to be the InvalidIsbnFault regardless of the location in the wsdl 
which I am unsure why.
>
> Therefore, I see two problems:
>
> *       The use of xsd:string as a return type (same results for xsd:int and 
I am sure others).
> *       Source code is only generated for one fault.
>
> I am using the Version 1.1 nightly build from October 29.
>
> I am curious if anyone else has encountered similar problems with rpc code 
generation.
>
> Thanks for the help.
>
> Brian
>
>
>  <<BookQuoteModified.wsdl>>
>
> [1] - Codegen Output
>
> C:\1test>wsdl2java -uri BookQuoteModified.wsdl -d xmlbeans -o client -p 
com.ems.client
> Using AXIS2_HOME:   "C:\axis2-1.1"
> Using JAVA_HOME:    "C:\Progra~1\Java\jdk1.5.0_06"
> Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name 
string with namespace http://www.w3.org/2001/XMLSchema
>         at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to 
the name string with namespace http://www.w3.org/2001/XMLSchema
>         at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:299)
>         at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
>         ... 2 more
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
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]




--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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

Reply via email to