[JBossWS] - Re: Bug? operations from doc-literal BARE to WRAPPED
by bocio
These are the two WSDL for the working example and not.
As I can see the getConfigurationFile() method part is not changed.
anonymous wrote : <wsdl:definitions xmlns:axis2="http://neo.spectre.com" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://neo.spectre.com/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://neo.spectre.com">
| <wsdl:documentation>NEOServizi</wsdl:documentation>
| <wsdl:types>
| <xs:schema xmlns:ns="http://neo.spectre.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://neo.spectre.com/xsd">
| <xs:element name="getConfigurationFileResponse">
| <xs:complexType>
| <xs:sequence>
| <xs:element name="_return" nillable="true" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:element>
| <xs:element name="getProcessorInfo">
| <xs:complexType>
| <xs:sequence>
| <xs:element name="processorInstance" nillable="true" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:element>
| <xs:element name="getProcessorInfoResponse">
| <xs:complexType>
| <xs:sequence>
| <xs:element maxOccurs="unbounded" name="_return" nillable="true" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:element>
| <xs:element name="getProcessorInstancesResponse">
| <xs:complexType>
| <xs:sequence>
| <xs:element maxOccurs="unbounded" name="_return" nillable="true" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:element>
| </xs:schema>
| </wsdl:types>
| <wsdl:message name="getProcessorInfoMessage">
| <wsdl:part name="part1" element="ns0:getProcessorInfo"/>
| </wsdl:message>
| <wsdl:message name="getProcessorInfoResponse">
| <wsdl:part name="part1" element="ns0:getProcessorInfoResponse"/>
| </wsdl:message>
| <wsdl:message name="getConfigurationFileMessage"/>
| <wsdl:message name="getConfigurationFileResponse">
| <wsdl:part name="part1" element="ns0:getConfigurationFileResponse"/>
| </wsdl:message>
| <wsdl:message name="getProcessorInstancesMessage"/>
| <wsdl:message name="getProcessorInstancesResponse">
| <wsdl:part name="part1" element="ns0:getProcessorInstancesResponse"/>
| </wsdl:message>
| <wsdl:portType name="NEOServiziPortType">
| <wsdl:operation name="getProcessorInfo">
| <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:getProcessorInfoMessage" wsaw:Action="urn:getProcessorInfo"/>
| <wsdl:output message="axis2:getProcessorInfoResponse"/>
| </wsdl:operation>
| <wsdl:operation name="getConfigurationFile">
| <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:getConfigurationFileMessage" wsaw:Action="urn:getConfigurationFile"/>
| <wsdl:output message="axis2:getConfigurationFileResponse"/>
| </wsdl:operation>
| <wsdl:operation name="getProcessorInstances">
| <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:getProcessorInstancesMessage" wsaw:Action="urn:getProcessorInstances"/>
| <wsdl:output message="axis2:getProcessorInstancesResponse"/>
| </wsdl:operation>
| </wsdl:portType>
| <wsdl:binding name="NEOServiziSOAP11Binding" type="axis2:NEOServiziPortType">
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
| <wsdl:operation name="getProcessorInfo">
| <soap:operation soapAction="urn:getProcessorInfo" style="document"/>
| <wsdl:input>
| <soap:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="getConfigurationFile">
| <soap:operation soapAction="urn:getConfigurationFile" style="document"/>
| <wsdl:input>
| <soap:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="getProcessorInstances">
| <soap:operation soapAction="urn:getProcessorInstances" 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="NEOServiziSOAP12Binding" type="axis2:NEOServiziPortType">
| <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
| <wsdl:operation name="getProcessorInfo">
| <soap12:operation soapAction="urn:getProcessorInfo" style="document"/>
| <wsdl:input>
| <soap12:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap12:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="getConfigurationFile">
| <soap12:operation soapAction="urn:getConfigurationFile" style="document"/>
| <wsdl:input>
| <soap12:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap12:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="getProcessorInstances">
| <soap12:operation soapAction="urn:getProcessorInstances" style="document"/>
| <wsdl:input>
| <soap12:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap12:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:binding name="NEOServiziHttpBinding" type="axis2:NEOServiziPortType">
| <http:binding verb="POST"/>
| <wsdl:operation name="getProcessorInfo">
| <http:operation location="getProcessorInfo"/>
| <wsdl:input>
| <mime:content type="text/xml"/>
| </wsdl:input>
| <wsdl:output>
| <mime:content type="text/xml"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="getConfigurationFile">
| <http:operation location="getConfigurationFile"/>
| <wsdl:input>
| <mime:content type="text/xml"/>
| </wsdl:input>
| <wsdl:output>
| <mime:content type="text/xml"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="getProcessorInstances">
| <http:operation location="getProcessorInstances"/>
| <wsdl:input>
| <mime:content type="text/xml"/>
| </wsdl:input>
| <wsdl:output>
| <mime:content type="text/xml"/>
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:service name="NEOServizi">
| <wsdl:port name="NEOServiziSOAP11port_http" binding="axis2:NEOServiziSOAP11Binding">
| <soap:address location="http://127.0.0.1:8380/axis2-neo/services/NEOServizi"/>
| </wsdl:port>
| <wsdl:port name="NEOServiziSOAP12port_http" binding="axis2:NEOServiziSOAP12Binding">
| <soap12:address location="http://127.0.0.1:8380/axis2-neo/services/NEOServizi"/>
| </wsdl:port>
| <wsdl:port name="NEOServiziHttpport1" binding="axis2:NEOServiziHttpBinding">
| <http:address location="http://127.0.0.1:8380/axis2-neo/rest/NEOServizi"/>
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
|
This is the wsdl where I get the strange behaviour:
anonymous wrote :
| <wsdl:definitions xmlns:axis2="http://neo.spectre.com" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://neo.spectre.com/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://neo.spectre.com">
| <wsdl:documentation>NEOServizi</wsdl:documentation>
| <wsdl:types>
| <xs:schema xmlns:ns="http://neo.spectre.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://neo.spectre.com/xsd">
| <xs:element name="getConfigurationFileResponse">
| <xs:complexType>
| <xs:sequence>
| <xs:element name="_return" nillable="true" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:element>
| </xs:schema>
| </wsdl:types>
| <wsdl:message name="getConfigurationFileMessage"/>
| <wsdl:message name="getConfigurationFileResponse">
| <wsdl:part name="part1" element="ns0:getConfigurationFileResponse"/>
| </wsdl:message>
| <wsdl:portType name="NEOServiziPortType">
| <wsdl:operation name="getConfigurationFile">
| <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:getConfigurationFileMessage" wsaw:Action="urn:getConfigurationFile"/>
| <wsdl:output message="axis2:getConfigurationFileResponse"/>
| </wsdl:operation>
| </wsdl:portType>
| <wsdl:binding name="NEOServiziSOAP11Binding" type="axis2:NEOServiziPortType">
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
| <wsdl:operation name="getConfigurationFile">
| <soap:operation soapAction="urn:getConfigurationFile" 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="NEOServiziSOAP12Binding" type="axis2:NEOServiziPortType">
| <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
| <wsdl:operation name="getConfigurationFile">
| <soap12:operation soapAction="urn:getConfigurationFile" style="document"/>
| <wsdl:input>
| <soap12:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap12:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:binding name="NEOServiziHttpBinding" type="axis2:NEOServiziPortType">
| <http:binding verb="POST"/>
| <wsdl:operation name="getConfigurationFile">
| <http:operation location="getConfigurationFile"/>
| <wsdl:input>
| <mime:content type="text/xml"/>
| </wsdl:input>
| <wsdl:output>
| <mime:content type="text/xml"/>
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:service name="NEOServizi">
| <wsdl:port name="NEOServiziSOAP11port_http" binding="axis2:NEOServiziSOAP11Binding">
| <soap:address location="http://127.0.0.1:8380/axis2-neo/services/NEOServizi"/>
| </wsdl:port>
| <wsdl:port name="NEOServiziSOAP12port_http" binding="axis2:NEOServiziSOAP12Binding">
| <soap12:address location="http://127.0.0.1:8380/axis2-neo/services/NEOServizi"/>
| </wsdl:port>
| <wsdl:port name="NEOServiziHttpport1" binding="axis2:NEOServiziHttpBinding">
| <http:address location="http://127.0.0.1:8380/axis2-neo/rest/NEOServizi"/>
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016582#4016582
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016582
19 years, 1 month
[JBossWS] - Re: schema import fails for relative schemaLocation
by meghanai_99
Is this issue fixed? I am deplying my BPEL created using jbpm to JBoss 4.0.5 and I get following exception -
11:44:16,567 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.
0.5.GA/server/default/deploy/studio.war
java.lang.NullPointerException
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processOperationInput(WSDL11R
eader.java:474)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortTypeOperations(WSD
L11Reader.java:460)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.
java:446)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processBinding(WSDL11Reader.j
ava:728)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPort(WSDL11Reader.java
:1071)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPorts(WSDL11Reader.jav
a:1054)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processServices(WSDL11Reader.
java:1027)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reade
r.java:119)
at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitio
nsFactory.java:145)
Looking at the JIRA issue it seems someone has raised concern when imported schema is of same namespace as my schema in wsdl. I have exactly same situation -
<xsd:schema xmlns="http://www.eclipse.org/alf/schema/EventBase/1" elementFormDefault="qualified" targetNamespace="http://www.eclipse.org/alf/schema/EventBase/1">
<!--<xsd:include schemaLocation="ARMALFEvents.xsd" />-->
<xsd:import schemaLocation="ARMALFEvents.xsd" namespace="http://www.eclipse.org/alf/schema/EventBase/1"/>
</xsd:schema>
Please let me asap. I have to get this working by tomorrow.
Thank you,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016575#4016575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016575
19 years, 1 month