Martin, This is what the WSDL looks like:
wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://testexamples/xsd" xmlns:ns="http://PointsCalculator.ve.recursionsw.com/types" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://PointsCalculator.ve.recursionsw.com/types"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://testexamples/xsd" targetNamespace="http://testexamples/xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xs:element type="ns:FoodDescription" name="FoodDescription" /> <xs:complexType name="FoodDescription"> <xs:sequence> <xs:element type="xs:int" name="calories" /> <xs:element type="xs:int" name="fatGrams" /> <xs:element type="xs:int" name="fiberGrams" /> <xs:element type="xs:int" name="points" /> </xs:sequence> </xs:complexType> <xs:element name="calculatePoints"> <xs:complexType> <xs:sequence> <xs:element type="ns:FoodDescription" name="param0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="calculatePointsResponse"> <xs:complexType> <xs:sequence> <xs:element type="xs:int" name="return" /> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="FoodDescription"> <xs:sequence> <xs:element type="xs:int" name="calories" /> <xs:element type="xs:int" name="fatGrams" /> <xs:element type="xs:int" name="fiberGrams" /> <xs:element type="xs:int" name="points" /> </xs:sequence> </xs:complexType> </xs:schema></wsdl:types><wsdl:message name="calculatePointsMessage"><wsdl:part element="ns1:calculatePoints" name="part1" /></wsdl:message><wsdl:message name="calculatePointsResponseMessage"><wsdl:part element="ns1:calculatePointsResponse" name="part1" /></wsdl:message><wsdl:portType name="PointsCalculatorPortType"><wsdl:operation name="calculatePoints"><wsdl:input message="ns:calculatePointsMessage" /><wsdl:output message="ns:calculatePointsResponseMessage" /></wsdl:operation></wsdl:portType><wsdl:binding type="ns:PointsCalculatorPortType" name="PointsCalculatorSOAP11Binding"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /><wsdl:operation name="calculatePoints"><soap:operation style="document" soapAction="urn:calculatePoints" /><wsdl:input><soap:body namespace="http://PointsCalculator.ve.recursionsw.com/types" use="literal" /></wsdl:input><wsdl:output><soap:body namespace="http://PointsCalculator.ve.recursionsw.com/types" use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding type="ns:PointsCalculatorPortType" name="PointsCalculatorSOAP12Binding"><soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /><wsdl:operation name="calculatePoints"><soap12:operation style="document" soapAction="urn:calculatePoints" /><wsdl:input><soap12:body namespace="http://PointsCalculator.ve.recursionsw.com/types" use="literal" /></wsdl:input><wsdl:output><soap12:body namespace="http://PointsCalculator.ve.recursionsw.com/types" use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="PointsCalculator"><wsdl:port binding="ns:PointsCalculatorSOAP11Binding" name="PointsCalculatorSOAP11port"><soap:address location="c:/Java/projects2/axis2-std-1.0testbed\build\wsdlPointsCalculator" /></wsdl:port><wsdl:port binding="ns:PointsCalculatorSOAP12Binding" name="PointsCalculatorSOAP12port"><soap12:address location="c:/Java/projects2/axis2-std-1.0testbed\build\wsdlPointsCalculator" /></wsdl:port></wsdl:service></wsdl:definitions> When I run WSDL2Java on this file, the generation fails, and the WSDL file reader says that FoodDescription is already defined in the namespace (or words to that effect). I was looking at my other JIRA issue and see that the generated file is not part of that, so it needs to be added. My other issue will have to wait for Monday morning, as I don't have everything that I need to create it. Regards, Jim On 6/24/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
Trying to understand what you mean by 'duplicate ComplexTypes' (which would be illustrated more clearly if the WSDL was provided) M- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: "Jim Bender" <[EMAIL PROTECTED]> To: <[email protected]>; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Saturday, June 24, 2006 8:47 AM Subject: Re: I am ready to create a new JIRA issue > Martin, > > In my message, I attached the WSDL file. > I implemented a Document/Literal style web service. > This is something that worked with 0.93 but has not worked with Axis2 1.0 > Std > with any of the daily builds. > > Thank you, > > Jim > > On 6/24/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> Jim- >> >> Can you provide the WSDL? >> More importantly ...Are you implementing with RPC-literal or RPC-encoded >> or >> DOC-literal or DOC-encoded? >> >> Martin-- >> This email message and any files transmitted with it contain confidential >> information intended only for the person(s) to whom this email message is >> addressed. If you have received this email message in error, please >> notify >> the sender immediately by telephone or email and destroy the original >> message without making a copy. Thank you. >> >> ----- Original Message ----- >> From: "Davanum Srinivas" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Friday, June 23, 2006 11:09 PM >> Subject: Re: I am ready to create a new JIRA issue >> >> >> > Please create a JIRA issue. Most of the times, it does not hurt to >> > just create it :) and then ask here (rather than the other way around >> > :) >> > >> > -- dims >> > >> > On 6/23/06, Jim Bender <[EMAIL PROTECTED]> wrote: >> >> Unless someone can give a good explanation why I should not, I will >> >> create a new JIRA issue about what I am seeing when trying to use a >> >> generated >> >> stub in my test client: >> >> >> >> Caught Throwable exception in runPointsCalculator: >> >> org.apache.axiom.om.OMException: >> >> java.lang.IllegalStateExceptionorg.apache.axiom.om.OMException: >> >> java.lang.IllegalStateException >> >> >> >> at >> >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) >> >> at >> >> org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144) >> >> at >> >> org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322) >> >> at >> >> testexamples.types.PointsCalculatorStub.toOM(PointsCalculatorStub.java:213) >> >> at >> >> testexamples.types.PointsCalculatorStub.toEnvelope(PointsCalculatorStub.java:230) >> >> at >> >> testexamples.types.PointsCalculatorStub.calculatePoints(PointsCalculatorStub.java:105) >> >> at >> >> com.recursionsw.ve.tools.webservices.TestWebServicesEndToEndTestNG.runPointsCalculator(TestWebSe >> >> rvicesEndToEndTestNG.java:299) >> >> at >> >> com.recursionsw.ve.tools.webservices.TestWebServicesEndToEndTestNG.testGeneratorEndToEnd(TestWeb >> >> ServicesEndToEndTestNG.java:155) >> >> >> >> I am using today's daily build: 23/06/2006. >> >> I used it to produce a new WSDL file (although the bug that is >> >> documented by my other JIRA ticket for the duplicate complex type >> >> definition means that I must hand edit the file to remove the >> >> duplicate definition). >> >> After doing that, I ran the WSDL2Java, updated the generated skeleton, >> >> and then tested with Embedded Tomcat 5.5. While invoking the web >> >> service operation on the stub, the exception is thrown by the >> >> StAXOMBuilder. >> >> >> >> What I am doing works without a problem in Axis2 0.93, for the same >> >> Java interface. >> >> The only difference is that Axis2 0.93 generates a valid WSDL file, >> >> without a problem. >> >> >> >> Regards, >> >> >> >> Jim >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> > >> > >> > -- >> > Davanum Srinivas : http://people.apache.org/~dims/ >> > >> > --------------------------------------------------------------------- >> > 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] >> >> > > > -- > Jim > > --------------------------------------------------------------------- > 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]
-- Jim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
