You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2008/01/15 16:20:34 UTC

[jira] Created: (AXIS2-3447) CLONE -Error in generated WSDL file - wsaw namespace

CLONE -Error in generated WSDL file - wsaw namespace
----------------------------------------------------

                 Key: AXIS2-3447
                 URL: https://issues.apache.org/jira/browse/AXIS2-3447
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel, wsdl
    Affects Versions: 1.1
         Environment: Windows XP
            Reporter: Martin Gainty
            Assignee: Deepal Jayasinghe


The declaration of the namespace "wsaw" is included in the 
<wsdl:input> element, but it is missing in the <wsdl:output> 
element. Adding the namespace manually to the <wsdl:output> 
element solves this issue, but it remains a workaround and
probably a bug that should :-) be solved in Axis.

Generated: <wsdl:output message="tns:sendResponse"
wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse">
</wsdl:output>

Manually modified: <wsdl:output message="tns:sendResponse"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse">
</wsdl:output>

Regards.


Original WSDL used as input for WSDL2Java:
<definitions xmlns:tns="http://be.belgium.fsb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://be.belgium.fsb">
	<types>
		<s:schema xmlns:tns="http://be.belgium.fsb" xmlns:err="http://fsb.belgium.be/fourthway/v1/error" xmlns:s="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://be.belgium.fsb">
			<s:import namespace="http://fsb.belgium.be/fourthway/v1/error" schemaLocation="./XSD/Error.xsd"/>
			<s:element name="send">
				<s:complexType>
					<s:sequence>
						<s:element ref="err:ErrorRequest">
						</s:element>
					</s:sequence>
				</s:complexType>
			</s:element>
			<s:element name="sendResponse">
				<s:complexType>
					<s:sequence>
						<s:element ref="err:ErrorResponse">
						</s:element>
					</s:sequence>
				</s:complexType>
			</s:element>
		</s:schema>
	</types>
	<message name="send">
		<part name="parameters" element="tns:send"/>
	</message>
	<message name="sendResponse">
		<part name="parameters" element="tns:sendResponse"/>
	</message>
	<portType name="ErrorInterfaceSoap">
		<operation name="send">
			<input message="tns:send"/>
			<output message="tns:sendResponse"/>
		</operation>
	</portType>
	<binding name="ErrorInterfaceSoap" type="tns:ErrorInterfaceSoap">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="send">
			<soap:operation style="document"/>
			<input>
				<soap:body use="literal" namespace="http://be.belgium.fsb"/>
			</input>
			<output>
				<soap:body use="literal" namespace="http://be.belgium.fsb"/>
			</output>
		</operation>
	</binding>
	<service name="ErrorInterface">
		<port name="ErrorInterfaceSoap" binding="tns:ErrorInterfaceSoap">
			<soap:address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
		</port>
	</service>
</definitions>


Generated WSDL:
<wsdl:definitions xmlns:tns="http://be.belgium.fsb" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://be.belgium.fsb">
	<wsdl:types>
		<s:schema xmlns:err="http://fsb.belgium.be/fourthway/v1/error" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://be.belgium.fsb">
			<s:import namespace="http://fsb.belgium.be/fourthway/v1/error" schemaLocation="xsd0.xsd"/>
			<s:element name="send">
				<s:complexType>
					<s:sequence>
						<s:element ref="err:ErrorRequest"/>
					</s:sequence>
				</s:complexType>
			</s:element>
			<s:element name="sendResponse">
				<s:complexType>
					<s:sequence>
						<s:element ref="err:ErrorResponse"/>
					</s:sequence>
				</s:complexType>
			</s:element>
		</s:schema>
	</wsdl:types>
	<wsdl:message name="send">
		<wsdl:part name="part1" element="tns:send"/>
	</wsdl:message>
	<wsdl:message name="sendResponse">
		<wsdl:part name="part1" element="tns:sendResponse"/>
	</wsdl:message>
	<wsdl:portType name="ErrorInterfacePortType">
		<wsdl:operation name="send">
			<wsdl:input message="tns:send" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendRequest"/>
			<wsdl:output message="tns:sendResponse" wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="ErrorInterfaceSOAP11Binding" type="tns:ErrorInterfacePortType">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsdl:operation name="send">
			<soap:operation soapAction="http://be.belgium.fsb/ErrorInterfaceSoap/sendRequest" style="document"/>
			<wsdl:input>
				<soap:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:binding name="ErrorInterfaceSOAP12Binding" type="tns:ErrorInterfacePortType">
		<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
		<wsdl:operation name="send">
			<wsdl:input>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="ErrorInterface">
		<wsdl:port name="ErrorInterfaceSOAP11port_http" binding="tns:ErrorInterfaceSOAP11Binding">
			<soap:address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
		</wsdl:port>
		<wsdl:port name="ErrorInterfaceSOAP12port_http" binding="tns:ErrorInterfaceSOAP12Binding">
			<soap12::address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3447) CLONE -Error in generated WSDL file - wsaw namespace

Posted by "Martin Gainty (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559078#action_12559078 ] 

Martin Gainty commented on AXIS2-3447:
--------------------------------------

this was never fixed 
axis-2.1.3 
All I want to do is for Java2WSDL to create a WSDL from supplied AddressBookService 

\AXIS\axis2-1.3\samples\pojo\build\classes>java -cp \AXIS\axis2-1.3\bin;.;\commons-logging\commons-logging-1.0.4\commons-logging.jar;\Axiom\lib\stax-api 
-1.0.1.jar;\Axiom\build;\annogen\lib;\AXIS\axis2-1.3\lib;\XMLSchema\XmlS 
chema-1.2;\AXIS\axis2-1.3\webapp\WEB-INF\classes;\Log4j\logging-log4j-1.2.9\ 
dist\lib 
org.apache.ws.java2wsdl.Java2WSDL -stn AddressBookService -cn sample.addressbook.service.AddressBookService 

An error occured while generating codeorg.apache.axiom.om.OMException: Given OMNamespace(http://www.w3.org/2006/05/addressing/wsdl wsaw) for this attribute is not declared in the scope of this element. First declare the namespace and then use it with the attribute 

the tool abends and no wsdl is produced 

> CLONE -Error in generated WSDL file - wsaw namespace
> ----------------------------------------------------
>
>                 Key: AXIS2-3447
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3447
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel, wsdl
>    Affects Versions: 1.1
>         Environment: Windows XP
>            Reporter: Martin Gainty
>            Assignee: Deepal Jayasinghe
>
> The declaration of the namespace "wsaw" is included in the 
> <wsdl:input> element, but it is missing in the <wsdl:output> 
> element. Adding the namespace manually to the <wsdl:output> 
> element solves this issue, but it remains a workaround and
> probably a bug that should :-) be solved in Axis.
> Generated: <wsdl:output message="tns:sendResponse"
> wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse">
> </wsdl:output>
> Manually modified: <wsdl:output message="tns:sendResponse"
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse">
> </wsdl:output>
> Regards.
> Original WSDL used as input for WSDL2Java:
> <definitions xmlns:tns="http://be.belgium.fsb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://be.belgium.fsb">
> 	<types>
> 		<s:schema xmlns:tns="http://be.belgium.fsb" xmlns:err="http://fsb.belgium.be/fourthway/v1/error" xmlns:s="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://be.belgium.fsb">
> 			<s:import namespace="http://fsb.belgium.be/fourthway/v1/error" schemaLocation="./XSD/Error.xsd"/>
> 			<s:element name="send">
> 				<s:complexType>
> 					<s:sequence>
> 						<s:element ref="err:ErrorRequest">
> 						</s:element>
> 					</s:sequence>
> 				</s:complexType>
> 			</s:element>
> 			<s:element name="sendResponse">
> 				<s:complexType>
> 					<s:sequence>
> 						<s:element ref="err:ErrorResponse">
> 						</s:element>
> 					</s:sequence>
> 				</s:complexType>
> 			</s:element>
> 		</s:schema>
> 	</types>
> 	<message name="send">
> 		<part name="parameters" element="tns:send"/>
> 	</message>
> 	<message name="sendResponse">
> 		<part name="parameters" element="tns:sendResponse"/>
> 	</message>
> 	<portType name="ErrorInterfaceSoap">
> 		<operation name="send">
> 			<input message="tns:send"/>
> 			<output message="tns:sendResponse"/>
> 		</operation>
> 	</portType>
> 	<binding name="ErrorInterfaceSoap" type="tns:ErrorInterfaceSoap">
> 		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> 		<operation name="send">
> 			<soap:operation style="document"/>
> 			<input>
> 				<soap:body use="literal" namespace="http://be.belgium.fsb"/>
> 			</input>
> 			<output>
> 				<soap:body use="literal" namespace="http://be.belgium.fsb"/>
> 			</output>
> 		</operation>
> 	</binding>
> 	<service name="ErrorInterface">
> 		<port name="ErrorInterfaceSoap" binding="tns:ErrorInterfaceSoap">
> 			<soap:address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
> 		</port>
> 	</service>
> </definitions>
> Generated WSDL:
> <wsdl:definitions xmlns:tns="http://be.belgium.fsb" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://be.belgium.fsb">
> 	<wsdl:types>
> 		<s:schema xmlns:err="http://fsb.belgium.be/fourthway/v1/error" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://be.belgium.fsb">
> 			<s:import namespace="http://fsb.belgium.be/fourthway/v1/error" schemaLocation="xsd0.xsd"/>
> 			<s:element name="send">
> 				<s:complexType>
> 					<s:sequence>
> 						<s:element ref="err:ErrorRequest"/>
> 					</s:sequence>
> 				</s:complexType>
> 			</s:element>
> 			<s:element name="sendResponse">
> 				<s:complexType>
> 					<s:sequence>
> 						<s:element ref="err:ErrorResponse"/>
> 					</s:sequence>
> 				</s:complexType>
> 			</s:element>
> 		</s:schema>
> 	</wsdl:types>
> 	<wsdl:message name="send">
> 		<wsdl:part name="part1" element="tns:send"/>
> 	</wsdl:message>
> 	<wsdl:message name="sendResponse">
> 		<wsdl:part name="part1" element="tns:sendResponse"/>
> 	</wsdl:message>
> 	<wsdl:portType name="ErrorInterfacePortType">
> 		<wsdl:operation name="send">
> 			<wsdl:input message="tns:send" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendRequest"/>
> 			<wsdl:output message="tns:sendResponse" wsaw:Action="http://be.belgium.fsb/ErrorInterfaceSoap/sendResponse"/>
> 		</wsdl:operation>
> 	</wsdl:portType>
> 	<wsdl:binding name="ErrorInterfaceSOAP11Binding" type="tns:ErrorInterfacePortType">
> 		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> 		<wsdl:operation name="send">
> 			<soap:operation soapAction="http://be.belgium.fsb/ErrorInterfaceSoap/sendRequest" style="document"/>
> 			<wsdl:input>
> 				<soap:body use="literal"/>
> 			</wsdl:input>
> 			<wsdl:output>
> 				<soap:body use="literal"/>
> 			</wsdl:output>
> 		</wsdl:operation>
> 	</wsdl:binding>
> 	<wsdl:binding name="ErrorInterfaceSOAP12Binding" type="tns:ErrorInterfacePortType">
> 		<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
> 		<wsdl:operation name="send">
> 			<wsdl:input>
> 				<soap12:body use="literal"/>
> 			</wsdl:input>
> 			<wsdl:output>
> 				<soap12:body use="literal"/>
> 			</wsdl:output>
> 		</wsdl:operation>
> 	</wsdl:binding>
> 	<wsdl:service name="ErrorInterface">
> 		<wsdl:port name="ErrorInterfaceSOAP11port_http" binding="tns:ErrorInterfaceSOAP11Binding">
> 			<soap:address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
> 		</wsdl:port>
> 		<wsdl:port name="ErrorInterfaceSOAP12port_http" binding="tns:ErrorInterfaceSOAP12Binding">
> 			<soap12::address location="http://devcons/axis2/services/ErrorInterface/1.0/ErrorInterface"/>
> 		</wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org