Wsdl2java - axis2 conversion

i have a wsdl file which when i try to convert to java using wsdl2java gives the following error:
Caused by: WSDLException: faultCode=PARSER_ERROR: Problem parsing
'file:/C:/Uses/binu/Desktop/axis2-1.4-bin/axis2-1.4/bin/wsdl1.xml'.: The prefix "wsdl"
for element "wsdl:definitions" is not bound.: org.xml.sax.SAXParseException:
The prefx "wsdl" for element "wsdl:definitions" is not bound.
This is a third party wsdl file and they say that the file is valid.
If i add the xmls:wsdl and all related in the defention tag it is giving another parser error.
We r using jdk1.4, axis2 and the version of the wsdl file is 2.0
But i cant generate wsdl with the command line axis2 bat file,eclipse plugin,idea plugin
Please help.
thanks,
Binu.
Below is the wsdl file
<wsdl:definitions targetNamespace="http://ws.centile.com">
<wsdl:documentation>Enterprise</wsdl:documentation>
     <wsdl:types>
     <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bean.admin.api.ws.centile.com/xsd">
<xs:import namespace="http://bean.core.api.ws.centile.com/xsd"/>
     <xs:complexType name="AdministrativeDomainBean">
     <xs:complexContent>
     <xs:extension base="ax24:AbstractBean">
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="parentAdmtiveDomain" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
     <xs:complexType name="AdministrativeDomains">
     <xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="elements" nillable="true" type="ax23:AdministrativeDomainBean"/>
<xs:element minOccurs="0" name="number" type="xs:int"/>
</xs:sequence>
</xs:complexType>
     <xs:complexType name="AdministratorBean">
     <xs:complexContent>
     <xs:extension base="ax24:AbstractBean">
     <xs:sequence>
<xs:element minOccurs="0" name="firstName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="lastName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="login" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="ownerAdmtiveDomain" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
     <xs:complexType name="Administrators">
     <xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="elements" nillable="true" type="ax23:AdministratorBean"/>
<xs:element minOccurs="0" name="number" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
     <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.centile.com">
<xs:import namespace="http://error.core.api.ws.centile.com/xsd"/>
<xs:import namespace="http://bean.admin.api.ws.centile.com/xsd"/>
<xs:import namespace="http://bean.enterprise.api.ws.centile.com/xsd"/>
<xs:import namespace="http://bean.telephony.api.ws.centile.com/xsd"/>
     <xs:element name="assignCallBarringToExtension">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="assignCallBarringToExtensionResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:complexType name="Exception">
     <xs:sequence>
<xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
     <xs:element name="ActionException">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="ActionException" nillable="true" type="ax22:ActionException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteACDGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteACDGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteAdministrativeDomain">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteAdministrativeDomainResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteAdministrator">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="login" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteAdministratorResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteCallBarring">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteCallBarringResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteDepartment">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteDepartmentResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteDevice">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedPhysicalID" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteDeviceResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteDialPrefix">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteDialPrefixResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteEnterprise">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteEnterpriseResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteExtensionGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteExtensionGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteForwarding">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="id" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteForwardingResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteGateway">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteGatewayResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteGatewayGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteGatewayGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteIVRService">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteIVRServiceResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteIpbx">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteIpbxResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteNetworkDomain">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteNetworkDomainResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deletePstnRange">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="rangeStart" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deletePstnRangeResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteService">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="serviceName" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteServiceResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteSite">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteSiteResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteSpeedDial">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteSpeedDialResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteUser">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="login" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteUserResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteUserExtension">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedNumber" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="deleteUserExtensionResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="isConnectedResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="login">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="login" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="password" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="loginResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="logoutResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setContext">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="admtiveDomainName" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setContextResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setExtensionsInACDGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedExtension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="overflowGroup" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extensions" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setExtensionsInACDGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setExtensionsInExtensionGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedExtension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extensions" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setExtensionsInExtensionGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setGatewaysInGatewayGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedGatewayGroup" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="gateways" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setGatewaysInGatewayGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setOneExtensionInACDGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedExtension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="overflowGroup" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="position" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setOneExtensionInACDGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setOneExtensionInGroupAddress">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedExtension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="position" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setOneExtensionInGroupAddressResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setOneGatewayInGatewayGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedGatewayGroup" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="gateway" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="position" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="setOneGatewayInGatewayGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="unassignAllCallBarringToExtension">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedExtension" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="unassignAllCallBarringToExtensionResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="unassignCallBarringToExtension">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="unassignCallBarringToExtensionResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createAdministrativeDomain">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createAdministrativeDomainResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax23:AdministrativeDomainBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateAdministrativeDomain">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateAdministrativeDomainResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax23:AdministrativeDomainBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getAdministrativeDomain">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="offset" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="length" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="parentAdmtiveDomain" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getAdministrativeDomainResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax23:AdministrativeDomains"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createAdministrator">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="login" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="password" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="firstname" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="lastname" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createAdministratorResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax23:AdministratorBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateAdministrator">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedLogin" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="login" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="password" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="firstname" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="lastname" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateAdministratorResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax23:AdministratorBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getAdministrator">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="offset" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="length" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="login" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="firstname" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="lastname" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="ownerAdmtiveDomain" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getAdministratorResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax23:Administrators"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createACDGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="service" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="groupPassword" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="autoLogin" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="hidenDirectory" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="queueSize" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="syndicalPause" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createACDGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:ACDGroupBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateACDGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedExtension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="service" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="groupPassword" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="autoLogin" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="hidenDirectory" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="queueSize" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="syndicalPause" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateACDGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:ACDGroupBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getACDGroup">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="offset" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="length" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="extension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="service" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="groupPassword" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="autoLogin" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="hidenDirectory" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="queueSize" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="syndicalPause" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getACDGroupResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:ACDGroups"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createCallBarring">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="description" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createCallBarringResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:CallBarringBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateCallBarring">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="description" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateCallBarringResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:CallBarringBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getCallBarring">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="offset" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="length" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="description" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getCallBarringResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:CallBarrings"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createDepartment">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createDepartmentResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:DepartmentBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateDepartment">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateDepartmentResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:DepartmentBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getDepartment">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="offset" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="length" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getDepartmentResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:Departments"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createDialPrefix">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="prefix" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="useEnum" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="gateway" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="trunkAddress" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="isDefaultDialPrefix" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="createDialPrefixResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:DialPrefixBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateDialPrefix">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="selectedName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="prefix" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="useEnum" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="gateway" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="trunkAddress" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="isDefaultDialPrefix" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="updateDialPrefixResponse">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax27:DialPrefixBean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
     <xs:element name="getDialPrefix">
     <xs:complexType>
     <xs:sequence>
<xs:element minOccurs="0" name="offset" nillable="true"

Have you generated the WSDL using AXIS2 itself.
I faced the problem of prasing wsdl as it was created using axis1.4.But used further by axis2.Axis is based on completely new framework of xsd and databinding.
So u need to used AXIS2 only to generate WSDL.(java2wsdl from axis2 bin)

Similar Messages

  • [Axis2] WSDL2Java seems to ignore xsd:any element

    Hi,
    Since I need to have some kind of extensibility in a web service i'm currently defining, I decided to play with the Axis2 userguide sample and tried to change the original WSDL so that the "SOAPStruct" message type would include an xsd:any element :
    <complexType name="SOAPStruct">
    <all>
    <element type="float" name="varFloat" />
    <element type="int" name="varInt" />
    <element type="string" name="varString" />
    <any maxOccurs="1"/>
    </all>
    </complexType>When I run WSDL2Java, the xsd:any element isn't mapped anywhere in the generated SOAPStruct.java, whereas the other are. I also tried just the following :
    <complexType name="SOAPStruct">
    <sequence>
    <any/>
    </sequence>
    </complexType>And then I've got barely nothing in the SOAPStruct.java (except the declaration of the Factory class)
    Could someone please help me with this ? I'm sure I made some kind of stupid error since using xsd:any shouldn't be really hard, I guess.
    I'm using Axis2 1.0.

    This seems to work for me<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="root">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element ref="foobarelements" maxOccurs="unbounded"/>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
    <xsd:element name="foo" type="xsd:anyType"  substitutionGroup="foobarelements"/>
    <xsd:element name="bar" type="xsd:anyType"  substitutionGroup="foobarelements"/>
    <xsd:element name="foobar" type="xsd:anyType"  substitutionGroup="foobarelements"/>
    <xsd:element name="foobarelements" type="xsd:anyType"/>
    </xsd:schema>

  • Wsdl2Java in Axis2

    Hello,
    I created a WSDL file with an Ant build using Axis2.
    Now I try to create The service.xml and the Java code from the WSDL.
    But I keep getting an Error parsing Wsdl.
    StackTrace:
    BUILD FAILED
    C:\Program Files\Eclipse V3.2\WorkSpace\VoiceMail\VoiceMail-AXIS2.xml:145: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:266)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
         at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:264)
         ... 11 more
    Caused by: org.apache.axis2.AxisFault: Schema for namespace 'http://util.java/xsd' already contains type 'Hashtable; nested exception is:
         java.lang.RuntimeException: Schema for namespace 'http://util.java/xsd' already contains type 'Hashtable
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
         ... 12 more
    Caused by: java.lang.RuntimeException: Schema for namespace 'http://util.java/xsd' already contains type 'Hashtable
         at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:244)
         at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:110)
         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:250)
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:959)
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067)
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221)
         ... 13 more
    --- Nested Exception ---
    org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:264)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
         at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    Caused by: org.apache.axis2.AxisFault: Schema for namespace 'http://util.java/xsd' already contains type 'Hashtable; nested exception is:
         java.lang.RuntimeException: Schema for namespace 'http://util.java/xsd' already contains type 'Hashtable
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
         ... 12 more
    Caused by: java.lang.RuntimeException: Schema for namespace 'http://util.java/xsd' already contains type 'Hashtable
         at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:244)
         at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:110)
         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:250)
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:959)
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067)
         at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221)
         ... 13 more
    PLLease Help if U can.

    Have you generated the WSDL using AXIS2 itself.
    I faced the problem of prasing wsdl as it was created using axis1.4.But used further by axis2.Axis is based on completely new framework of xsd and databinding.
    So u need to used AXIS2 only to generate WSDL.(java2wsdl from axis2 bin)

  • Problem with axis2 and Tomcat

    Hello,
    I am having a strange problem with Tomcat and axis. I have a webservice that uses axis2 for wsdl2java class generation. When I compile my project in maven a Test is performed. During the test a glassfish server is established and the project is deployed -everything work great with the expected results. However when I try to deploy the webservice on tomcat it has some problems.
    At first I tried to call axis code in a POST method that takes a MultiPart message. The code is as below:
    *@Path("identifyWavestream")*
    *@POST*
    *@Consumes(MediaType.MULTIPART_FORM_DATA)*
    *@Produces(MediaType.APPLICATION_XML)*
    *public String multipartTest(com.sun.jersey.multipart.MultiPart multiPart) throws Exception {* 
    *// get first body part (index 0)*
    *//tomcat shows that the first error is here (line 122 is the nest one with bodypart)*
    BodyPart bp = multiPart.getBodyParts().get(0);
    BodyPartEntity bodyPartEntity = (BodyPartEntity) bp.getEntity();
    InputStream stream = bodyPartEntity.getInputStream();
    *//the rest of the code either saves the incoming file or implements the wsdl2java axis interface - neither works.*
    And the tomcat error is:
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    java.util.ArrayList.RangeCheck(Unknown Source)
    java.util.ArrayList.get(Unknown Source)
    com.webserv.rest.resources.SearchResource.test.multipartTest(SearchResource.java:122)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    It was strange to me since this simple approach of handling a Multipart method worked for me earlier. Then I decided skip the handling of multipart method and just call the axis code. But the results also caused an error. I then tried to call the axis code in a simple @GET method (to cross out any issues regarding the multipart) and the result where the same. Again everything works on the maven- glassfish test. In this case the tomcat error is the following:
    javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:361)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    com.sun.jersey.api.container.MappableContainerException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:74)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    org.apache.axis2.transport.http.AbstractHTTPSender.initializeTimeouts(AbstractHTTPSender.java:454)
    org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:514)
    org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:156)
    org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
    org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
    org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
    org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    com.webserv.rest.webapp.IntSoapServiceStub.getServerData(IntSoapServiceStub.java:2447)
    com.webserv..rest.resources.AIntSoapImpl.getServerData(AIntSoapImpl.java:112)
    com.webserv..rest.resources.SearchResource.test.pingTest(SearchResource.java:167)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    I think it is also a good ide to post the pom.xml file :
    Edited by: 803864 on 2010-10-21 00:30

    I think it is also a good ide to post the pom.xml file:
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"+
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    +<modelVersion>4.0.0</modelVersion>+
    +<groupId>com.myProjects</groupId>+
    +<artifactId>audioid-rest-interface</artifactId>+
    +<packaging>war</packaging>+
    +<name>AudioID Rest Interface</name>+
    +<version>0.1</version>+
    +<dependencies>+
    +<!--+
    +<dependency>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.grizzly</groupId>+
    +<artifactId>grizzly-servlet-webserver</artifactId>+
    +<version>1.9.0</version>+
    +<scope>test</scope>+
    +</dependency>-->+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-bundle</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-logging</groupId>+
    +<artifactId>commons-logging</artifactId>+
    +<version>1.0.4</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-collections</groupId>+
    +<artifactId>commons-collections</artifactId>+
    +<version>3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.slf4j</groupId>+
    +<artifactId>slf4j-log4j12</artifactId>+
    +<version>1.5.6</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>junit</groupId>+
    +<artifactId>junit</artifactId>+
    +<version>3.8.2</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.distributions</groupId>+
    +<artifactId>web-all</artifactId>+
    +<version>10.0-build-20080430</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.embedded</groupId>+
    +<artifactId>gf-embedded-api</artifactId>+
    +<version>1.0-alpha-4</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.hibernate</groupId>+
    +<artifactId>hibernate</artifactId>+
    +<version>3.2.5.ga</version>+
    +<exclusions>+
    +<exclusion>+
    +<groupId>javax.transaction</groupId>+
    +<artifactId>jta</artifactId>+
    +</exclusion>+
    +<exclusion>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib</artifactId>+
    +</exclusion>+
    +</exclusions>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-aar-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-java2wsdl</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-xmlbeans</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.12</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib-nodep</artifactId>+
    +<version>2.1_3</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<finalName>audioid-rest-interface</finalName>+
    +<plugins>+
    +<plugin>+
    +<!-- This class is just generated for wadl support!!! -->+
    +<!-- Take care that folder ../music-dna-core is existing -->+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<phase>generate-sources</phase>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage> com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>../audioid-rest-interface/src/main/resources+
    +</schemaDirectory>+
    +<includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema>+
    +</includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>false</verbose>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<!-- <version>2.6</version> -->+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>javadoc</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<encoding>UTF-8</encoding>+
    +<verbose>false</verbose>+
    +<show>public</show>+
    +<subpackages> com.webserv.rest.rest.resources: com.webserv.rest.rest.commons: com.webserv.wsparameters+
    +</subpackages>+
    +<doclet>com.sun.jersey.wadl.resourcedoc.ResourceDoclet</doclet>+
    +<docletPath>${path.separator}${project.build.outputDirectory}+
    +</docletPath>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +<additionalparam>-output+
    +${project.build.outputDirectory}/resourcedoc.xml</additionalparam>+
    +<useStandardDocletOptions>false</useStandardDocletOptions>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate</id>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<wadlFile>${project.build.outputDirectory}/application.wadl+
    +</wadlFile>+
    +<formatWadlFile>true</formatWadlFile>+
    +<baseUri>http://192.168.2.149:8080/${project.build.finalName}+
    +</baseUri>+
    +<packagesResourceConfig>+
    +<param> com.webserv.rest.resources</param>+
    +</packagesResourceConfig>+
    +<wadlGenerators>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc+
    +</className>+
    +<properties>+
    +<property>+
    +<name>applicationDocsFile</name>+
    +<value>${basedir}/src/main/doc/application-doc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>grammarsFile</name>+
    +<value>${basedir}/src/main/doc/application-grammars.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>resourceDocFile</name>+
    +<value>${project.build.outputDirectory}/resourcedoc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +</wadlGenerators>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>java</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<mainClass>com.sun.jersey.samples.generatewadl.Main</mainClass>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-compiler-plugin</artifactId>+
    +<inherited>true</inherited>+
    +<configuration>+
    +<source>1.5</source>+
    +<target>1.5</target>+
    +<!--+
    exclude temporary types that are only needed for wadl and doc
    generation
    -->
    +<!--+
    +<excludes> <exclude>com/webserv/types/temporary/**</exclude>+
    +<exclude>com/webserv/rest/commons/Examples.java</exclude>+
    +</excludes>+
    -->
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.jvnet.jaxb2.maven2</groupId>+
    +<artifactId>maven-jaxb2-plugin</artifactId>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-wsdl2code-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate reco core</id>+
    +<goals>+
    +<goal>wsdl2code</goal>+
    +</goals>+
    +<configuration>+
    +<packageName>com.webserv.rest.webapp</packageName>+
    +<wsdlFile>src/main/java/com/webserv/wsdl/web.wsdl</wsdlFile>+
    +<databindingName>adb</databindingName>+
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage>com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>src/main/xsd</schemaDirectory> <includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema> </includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>true</verbose>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +<profiles>+
    +<profile>+
    +<id>jdk-1.5</id>+
    +<activation>+
    +<jdk>1.5</jdk>+
    +</activation>+
    +<dependencies>+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.10</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<plugins>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<configuration>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.bind</groupId>+
    +<artifactId>jaxb-api</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.activation</groupId>+
    +<artifactId>activation</artifactId>+
    +<version>1.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.stream</groupId>+
    +<artifactId>stax-api</artifactId>+
    +<version>1.0</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +<profile>+
    +<id>xsltproc</id>+
    +<activation>+
    +<file>+
    +<exists>../xsltproc_win32/xsltproc.exe</exists>+
    +</file>+
    +</activation>+
    +<build>+
    +<plugins>+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<id>copy-docs-to-builddir</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>src\\main\\doc\\*.* target\\classes+
    +</commandlineArgs>+
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>prepare-xsltproc</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>..\\audioid-rest-interface\\src\\main\\resources\\*.xsd+
    target\\classes</commandlineArgs>
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>exec-xsltproc: target/application.html</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<!--<executable>xsltproc</executable>-->+
    +<executable>../xsltproc_win32/xsltproc.exe</executable>+
    +<commandlineArgs>-o target/application.html+
    src/main/doc/wadl_documentation.xsl
    target/classes/application.wadl</commandlineArgs>
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +</profiles>+
    +<pluginRepositories>+
    +<pluginRepository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</pluginRepository>+
    +<pluginRepository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</pluginRepository>+
    +</pluginRepositories>+
    +<repositories>+
    +<repository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</repository>+
    +<repository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</repository>+
    +<repository>+
    +<id>glassfish-repository</id>+
    +<name>Java.net Repository for Glassfish</name>+
    +<url>http://download.java.net/maven/glassfish</url>+
    +</repository>+
    +</repositories>+
    +</project>+
    Can anyonr contribute?

  • Problem with axis2 and QName class

    Hello,
    We have deployed AXIS2 library with a library project (J2EE server component) as it is specify by a SAP guide. We deployed the sda file correctly and we know how to reference this library in Portal Application and J2ee Module WEB or EJB.
    The problem is when we want to use internally javax.xml.namespace.QName is thrown an exception. This exception is shown bellow:
    java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
    at wpt.ConventerStub.populateAxisService(ConventerStub.java:52)
    at wpt.ConventerStub.<init>(ConventerStub.java:100)
    at wpt.ConventerStub.<init>(ConventerStub.java:89)
    at wpt.ConventerStub.<init>(ConventerStub.java:140)
    at wpt.ConventerStub.<init>(ConventerStub.java:132)
    at com.eadscasa.axis2.Axis2Converter.doContent(Axis2Converter.java:26)
    In the guide is said that we have to deploy a library project to avoid this problem but we still are getting it. I have realized that Qname class is a basic class into the JDK 1.4 and in different projects as AXIS2 making revision about this class.
    How can I deploy these libraries (jars) without dependencies with SAP Portal libraries?
    Is there any way to setup the classloader to avoid this error?
    In the documentation about this kind of project it is said that you cannot deploy libraries (*.jar) with the same name. I donu2019t know if it happens the same with the class.
    We have to develop web Services with Soap 1.2 specification, SAML etc and we need to develop this class because sap portal doesnu2019t support this kind o features.
    Regards,
    Daniel Urbano

    Hi,
    Firstly thanks for you reply. I generate the client with wsdl2java tool as it is mentioned in AXIS2 documentation and as you specified in your blog. After I follow the steps:
    Step 1 - Generating the Axis2.war
    Step 2 u2013 Modify the service *.aar file
    Step 3 u2013 Create the J2EE library
    Step 4 u2013 Create the J2EE application wrapping the web module axis2.war
    We know how to make the step 1,2 and 3 but there is a little mess in the last step. Donu2019t worry about this because we got the general idea in this document. According to the guide the main problem is to solve a classloading conflict because it only can be loaded the libraries once and you need the AXIS2 libraries for *.arr and for the axis2 engine to be able to manage this module. This problem it is solved making a J2EE library Project and putting a reference to this library in the module, applications or project, which have to use AXIS2 libraries.
    We have 3 different kind of projects that we can develop according to Sap Netweaver:
    J2EE Project:
    ·     Web Module Project: Resulting a war file.
    ·     Enterprise Application Project: Resulting a ear file
    ·     EJB Module Project: Resulting a war file.
    Portal Application
    ·     Portal Application Project: Resulting a par file.
    In any project mentioned upper we know how to deploy these with a reference to this library project that previously we deployed successfully in the portal. But the problem is when we are going to check this module running it the server give us an exception.
    java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
    at wpt.ConventerStub.populateAxisService(ConventerStub.java:52)
    at wpt.ConventerStub.(ConventerStub.java:132)
    at com.eadscasa.axis2.Axis2Converter.doContent(Axis2Converter.java:26)
    This exception is because exist classes into the axis2 libraries as javax.xml.namespace.Qname that are in SAP Portal libraries into the J2ee Server (JDK 1.4). This conflict is mentioned in the blog u201C360° View on enterprise SOAu201D where Michael Koegel, the author, says that if you want that AXIS2 libraries works you will have to work around with the dependencies of libraries.
    The main problem in this point it is that we donu2019t know how to resolve this dependencies and if it is possible that other module of SAP Portal wonu2019t work fine if we change the base libraries. AXIS2 has newer classes than SAP Portal and it is possible that we can break other SAP Portal functions. In this case if we can not get that AXIS2 and SAP Portal co-exist in the same server we will probably have to change our way to get the enterprise objectives.
    In order to resolve these dependencies we have found a SAP Note Number: 1138545. In this note it is said that we can setup the precedence class loader in the visual admin  into the deploy service. If you add your AXIS2 library at the beginning of StandardAplicationReferences variable in the deploy service, it is loaded the axis2 libraries first and it works the services but other portal functionality fails. This variable it is used to load the libraries precedence for all applications in the Server. If we could setup the class load precedence in a web module project or the system doesnu2019t take into account the server libraries for this module it will work perfectly.
    If you could specify more the last point of your manual, I will appreciate it.
    Regards,
    Daniel Urbano

  • Error while creating axis2 web service client

    Hi, I am making axis2 web services without using any tool . I made an aar file and deployed in the jboss application server . The aar deployed successfully. The server generated wsdl file. When i tried to make an axis2 client code from wsdl2java command (i also tried to make client using myeclipe) i got the following error:
    WS-1:(BP2402) The wsdl:binding element does not use a soapbind:binding element as declared in section "3 soap binding " of the wsdl 1.1 specification_
    I used the following versions of software
    axis2 1.4
    jboss 4.2
    maven 2.0.9
    Plz help me.
    Here is my wsdl
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://ws.apache.org/axis2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://ws.apache.org/axis2">
    - <wsdl:types>
    - <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2">
    - <xs:element name="sayHello">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    - <xs:element name="sayHelloResponse">
    + <xs:complexType>
    - <xs:sequence>
    <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    </wsdl:types>
    - <wsdl:message name="sayHelloRequest">
    <wsdl:part name="parameters" element="ns:sayHello" />
    </wsdl:message>
    - <wsdl:message name="sayHelloResponse">
    <wsdl:part name="parameters" element="ns:sayHelloResponse" />
    </wsdl:message>
    - <wsdl:portType name="HelloWorldPortType">
    - <wsdl:operation name="sayHello">
    <wsdl:input message="ns:sayHelloRequest" wsaw:Action="urn:sayHello" />
    <wsdl:output message="ns:sayHelloResponse" wsaw:Action="urn:sayHelloResponse" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding name="HelloWorldSoap11Binding" type="ns:HelloWorldPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <wsdl:operation name="sayHello">
    <soap:operation soapAction="urn:sayHello" 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="HelloWorldSoap12Binding" type="ns:HelloWorldPortType">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <wsdl:operation name="sayHello">
    <soap12:operation soapAction="urn:sayHello" 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="HelloWorldHttpBinding" type="ns:HelloWorldPortType">
    <http:binding verb="POST" />
    - <wsdl:operation name="sayHello">
    <http:operation location="HelloWorld/sayHello" />
    - <wsdl:input>
    <mime:content type="text/xml" part="sayHello" />
    </wsdl:input>
    - <wsdl:output>
    <mime:content type="text/xml" part="sayHello" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service name="HelloWorld">
    - <wsdl:port name="HelloWorldHttpSoap11Endpoint" binding="ns:HelloWorldSoap11Binding">
    <soap:address location="http://172.21.21.233:8080/axis2/services/HelloWorld.HelloWorldHttpSoap11Endpoint" />
    </wsdl:port>
    - <wsdl:port name="HelloWorldHttpSoap12Endpoint" binding="ns:HelloWorldSoap12Binding">
    <soap12:address location="http://172.21.21.233:8080/axis2/services/HelloWorld.HelloWorldHttpSoap12Endpoint" />
    </wsdl:port>
    - <wsdl:port name="HelloWorldHttpEndpoint" binding="ns:HelloWorldHttpBinding">
    <http:address location="http://172.21.21.233:8080/axis2/services/HelloWorld.HelloWorldHttpEndpoint" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    Hi
    Check this thread
    WD Message Manager
    Reward opints if usefull....

  • Axis2 and wsdl- Exception thrown when client attempting server connection

    Hi all,
    I am trying at the moment to develop an Axis2 server, and test it with a client.
    The server is to provide a soap wsdl service, returning an object request.
    I have generated server code and client code using axis2's wsdl2java tool, and all seemed fine.
    The server I created using this generated code seems to work, so far as i can tell, as I can connect to it through a browser.
    For example, using the browser I can connect to it via:
    http://localhost:8888/services/PersonInfo
    and it gives me a page showing 'Deployed Services', listing the operations available.
    but the funny thing is here that it seems to auto-direct me to another url: http://localhost:8888/axis2/services/ which I have not specified.
    For the server I am using the axis2 supplied SimpleHTTPServer. Here is the complete code excluding the actual generated code:
    public class EmbeddedAxis2Server {
        public static void main(String[] args) throws Exception {
            ConfigurationContext context = ConfigurationContextFactory.
            createConfigurationContextFromFileSystem(null, null);
            AxisService service =
            AxisService.createService(caps.integration.rhos.dk.schema.astraiaservice._2008._04._15.PersonInfo.class.getName(), context.getAxisConfiguration());
            context.getAxisConfiguration().addService(service);
            SimpleHTTPServer server = new SimpleHTTPServer(context, 8888);
            server.start();
    }I can even call the published operation using the browser, via the url:
    http://localhost:8888/axis2/services/PersonInfo/getPersonInfo
    and pass in arguments using the usual form variables syntax.
    HOWEVER!! My problem is (and maybe it is related to the url redirect strangeness I mentioned above, or maybe not), that my coded client is not able to connect.
    I generated the client stubs also using wsdl2java, and call the functions... but I get this show stopping exception:
    org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) 127.0.0.1/services/PersonInfo
         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
         at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
         at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
         at caps.integration.rhos.dk.schema.astraiaservice._2008._04._15.PersonInfoStub.getPersonInfo(PersonInfoStub.java:142)
         at com.astraia.axisclient.Client.getPersonInfo(Client.java:44)
         at com.astraia.axisclient.Client.main(Client.java:23)Here is the client code (excluding generated stub)
        public static void getPersonInfo(){
            try
                 ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
                 PersonInfoStub stub =new PersonInfoStub(context);
                GetPersonInfoIn req =new GetPersonInfoIn();
                req.setCivilRegistrationIdentifier("CIV123");
                req.setHospitalCode("HOS123");
                req.setRequestId("123");
                req.setUserName("sean");
                GetPersonInfoOut res = stub.getPersonInfo(req);
                System.out.println(res.toString());
            } catch(Exception e){     e.printStackTrace();       System.out.println("\n\n\n");      }
        }If anyone has any idea of what this problem is about, I would love to hear about it!
    Kind Regards,
    svaens
    Edited by: svaens on Apr 28, 2008 2:11 AM

    Hi, I have an update!!!
    Another aspect of my problem (which I had forgotten to mention) was a mysterious difference in the original wsdl file, and the one that was generated by my SImpleHTTPServer when my browser contact it, and requested the wsdl. That is, when I use the url in my firefox browser
    [http://localhost:8888/axis2/services/PersonInfo?wsdl|http://localhost:8888/axis2/services/PersonInfo?wsdl]
    the wsdl that was returned to the browser was different in several ways to the original wsdl that I generated my server side java code from using the axis2-1.3 wsdl2java.sh script.
    I had noticed this, and decided to create a client using this new and strangely different wsdl, and see if this provides different results.
    It worked!!! After creating my stub java code with the new wsdl file, and the wsdl2java tool, and modifying my custom java code to match the different stub generated, the client was able to connect to the server, and return me a serialized object.
    Does this give you any clues as to what may be the real problem?
    Differences in the wsdl include:
    1. the targetNamespace attribute listed in the wsdl:definitions tag shows the namespace backwards!!
    2. The new generated wsdl file has two extra element types,
    GetPersonInfo, and GetPersonInfoResponse, + GetPersonInfoIn , GetPersonInfoOut
    while the original only game me GetPersonInfoOut & GetPersonInfoIn.
    The client code I had to change now looks like this:
    try
                ConfigurationContext context = ConfigurationContextFactory.
                createDefaultConfigurationContext();
            PersonInfoStub stub =  new PersonInfoStub(context);
                GetPersonInfo reqs =   new GetPersonInfo();
                GetPersonInfoIn req = new GetPersonInfoIn();
                reqs.setGetPersonInfoIn(req);
                req.setCivilRegistrationIdentifier("CIV123");
                req.setHospitalCode("HOS123");
                req.setRequestId("123");
                req.setUserName("sean");
                GetPersonInfoResponse res = stub.getPersonInfo(reqs);
                GetPersonInfoOut resultObj = res.get_return();
                            OMFactory fac = OMAbstractFactory.getOMFactory();
                            OMElement xml = resultObj.getOMElement(GetPersonInfoResponse.MY_QNAME, fac);
                            XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
                            writeOMElement(xml, writer);
            } catch(Exception e){
                e.printStackTrace();
                System.out.println("\n\n\n");
            }

  • Org.apache.axis2.AxisFault: Read timed out

    We have web service client generated from wsdl2jave of axis2-1.4.1, we are getting an error on calling webservice operation,  i have manually set timeout at one of the operation invocation, that looks fine now, but we have call so many places, do i need to set time all place same, I am not sure code i have used to set time is correct.
    please advice how to over come the issue, web service has been deployed on WAS, client application started giving this error, after we have installed a patch to address security issue, can we address the issue from code level.
    here is the code added to set timeout
    int timeOutInMilliSeconds = 3 * 60 * 1000; // Two minutes
      stub._getServiceClient().getOptions().setProperty(HTTPConstants.SO_TIMEOUT, new Integer(timeOutInMilliSeconds));
      stub._getServiceClient().getOptions().setProperty(HTTPConstants.CONNECTION_TIMEOUT, new Integer(timeOutInMilliSeconds));
      //end here
      GetPermittedTypesResponse response = stub.getPermittedTypes(get);
         permittedTypes = response.getReturn();
    Here is error stack trace
    org.apache.axis2.AxisFault: Read timed out
      at org.apache.axis2.AxisFault.makeFault(Unknown Source)
      at org.apache.axis2.transport.http.HTTPSender.sendViaPost(Unknown Source)
      at org.apache.axis2.transport.http.HTTPSender.send(Unknown Source)
      at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(Unknown Source)
      at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Unknown Source)
      at org.apache.axis2.engine.AxisEngine.send(Unknown Source)
      at org.apache.axis2.description.OutInAxisOperationClient.send(Unknown Source)
      at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Unknown Source)
      at org.apache.axis2.client.OperationClient.execute(Unknown Source)
      at com.ecs.services.EcsObjectServiceStub.instantiateDocument(Unknown Source)
      at com.ey.edocs.ecs.client.EcsObjectClient.instantiateDocument(Unknown Source)
      at com.ey.edocs.ldi.helpers.ObjectHelper.createEcsObject(Unknown Source)
      at com.ey.edocs.ldi.helpers.ObjectHelper.createEcsEmail(Unknown Source)
      at com.ey.edocs.ldi.views.Import$16.run(Unknown Source)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Unknown Source)
    Caused by: java.net.SocketTimeoutException: Read timed out
      at java.io.BufferedInputStream.fill(Unknown Source)
      at java.io.BufferedInputStream.read(Unknown Source)
      at org.apache.commons.httpclient.HttpParser.readRawLine(Unknown Source)
      at org.apache.commons.httpclient.HttpParser.readLine(Unknown Source)
      at org.apache.commons.httpclient.HttpConnection.readLine(Unknown Source)
      at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(Unknown Source)
      at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source)
      at org.apache.commons.httpclient.HttpMethodBase.readResponse(Unknown Source)
      at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source)
      at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)
      at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)
      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
      at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Unknown Source)
      ... 14 more

    Baseline.grf is not able to connect to Endeca Server. Make sure Endeca Server has started correctly and then run baseline.grf graph.
    Regards,
    Srikanth

  • Axis2: Operation not found

    Hi guys,
    First of all my apologies if this is the incorrect forum for this topic - I'm quite new to web services!
    I was wondering if I could ask about a "Operation Not found" problem I'm encountering. When attempting to deploy the sync version and the async version of the same operation on the same instance of axis2 (ie: two operations, both with the same input parameters, but only one with a return parameter) I receive this error:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Header/>
         <soapenv:Body>
              <soapenv:Fault>
                   <faultcode>soapenv:Client</faultcode>
                   <faultstring>Operation Not found EPR is https://10.238.212.125:9443/soap/ManageWidgetSync and WSA Action =  null</faultstring>
                   <detail>
                        <Exception>org.apache.axis2.AxisFault: Operation Not found EPR is https://10.238.212.125:9443/soap/ManageWidgetSync and WSA Action =  null
         at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:51)
         at org.apache.axis2.engine.Phase.invoke(Phase.java:398)
         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522)
         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:487)
         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:326)
         at org.apache.axis2.transport.http.util.SOAPUtil.processPostRequest(SOAPUtil.java:62)
         at org.wso2.wsas.transport.jetty.Axis2SOAPHandler.processPostRequest(Axis2SOAPHandler.java:43)
         at org.wso2.wsas.transport.jetty.Axis2Handler.handle(Axis2Handler.java:159)
         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
         at org.mortbay.jetty.Server.handle(Server.java:269)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
         at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:193)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:208)
         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
    </Exception>
                   </detail>
              </soapenv:Fault>
         </soapenv:Body>
    </soapenv:Envelope>Each web service operation was generated by the WSDL2JAVA tool from a different port in a WSDL file. I ensured that the output from the tool for each service was separated into a separate directory (to ensure no files were overwritten). I also ensured that I specified a different Java package name for the output of each run/operation, to ensure that when it came to merging the Java output the package names would prevent the generated skeletons from being overwritten.
    As each port uses the same underlying data structures, I merged the contents of the two directories together (overwriting files), except the services.xml file, which I manually edited to ensure each service from the individual service.xml files was present in the resultant services.xml file.
    When fleshing out the generated skeleton files to return a response, then building both operations into an aar file and deploying it on to a simple server, I can throw messages at the aysnc version of the operation with no problems. However, I cannot access the sync services as an error (attached) is returned, suggesting that it cannot find the operation. This may be occurring because the sync service operations contain the same input parameters as operations within the provider and consumer services.
    The sync service works correctly if deployed separately, so I'm a little baffled. The services.xml file seems sane (attached too!).
    I do have a feeling it's to do with the dispatchers. However, ensuring the RequestURIBasedDispatcher is the first dispatcher to be used, and then accessing the service via the following uri, does not seem to stop the error:
    http://serviceuri/axis2/services/serviceName/operationName
    I apologise if this is quite a silly question - I am still embracing the learning curve that is Axis 2 ;) Any suggestions or guidance would be very much appreciated!
    Kind regards,
    Simon
    My services.xml file:
    <!-- This file was auto-generated from WSDL --><!-- by the Apache Axis2 version: #axisVersion# #today# --><serviceGroup>
    <service name="ManageEventNotification">
          <parameter name="ServiceClass" locked="false">com.bt.sdk.manageeventnotification.consumer.service.ManageEventNotification</parameter>
           <transports>
              <transport>jms</transport>
              <transport>http</transport>
         </transports>
         <parameter name="transport.jms.Destination" locked="true">MEN.JMS.Q</parameter>
          <operation name="notify" mep="http://www.w3.org/2004/08/wsdl/in-only">
          <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
                              class="com.bt.sdk.manageeventnotification.consumer.service.ManageEventNotificationMessageReceiverInOnly"/>
             <actionMapping>http://capabilities.nat.bt.com/wsdl/MEN/2006/12/30#notify</actionMapping>
               <module ref="validator"/>
          </operation>
          <operation name="subscribe" mep="http://www.w3.org/2004/08/wsdl/in-out">
             <actionMapping>http://capabilities.nat.bt.com/wsdl/MEN/2006/12/30#subscribe</actionMapping>
         </operation>
        <operation name="createWidgetRequest" mep="http://www.w3.org/2004/08/wsdl/in-only">
          <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
                              class="com.bt.sdk.manageeventnotification.consumer.service.ManageEventNotificationMessageReceiverInOnly"/>
             <actionMapping>http://capabilities.nat.bt.com/wsdl/MEN/2006/12/30#createWidgetRequest</actionMapping>
         </operation>
       </service>
       <service name="ManageEventNotificationSync">
          <parameter name="ServiceClass" locked="false">com.bt.sdk.manageeventnotification.consumer.service.ManageEventNotificationSync</parameter>
           <transports>
              <transport>jms</transport>
              <transport>http</transport>
         </transports>
         <parameter name="transport.jms.Destination" locked="true">MEN.JMS.Q</parameter>
          <operation name="createWidget" mep="http://www.w3.org/2004/08/wsdl/in-out">
          <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
                              class="com.bt.sdk.manageeventnotification.consumer.service.ManageEventNotificationMessageReceiverInOut"/>
             <actionMapping>http://capabilities.nat.bt.com/wsdl/MEN/2006/12/30#createWidget</actionMapping>
         </operation>
       </service>
    </serviceGroup>

    Did you manage to find a solution ??
    I'm getting the same problem.

  • Use TaskQueryService via Axis2 Client - unrecognized operation: credential

    Trying to use the TaskQueryService via an Aixs2 client results in 'Unexpected subelement credential'.
    org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement credential
         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
         at com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryServiceStub.fromOM(TaskQueryServiceStub.java:4029)
         at com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryServiceStub.authenticate(TaskQueryServiceStub.java:382)
         at com.test.humantask.client.TaskQueryService.main(TaskQueryService.java:55)
    Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement credential
         at com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryServiceStub$CredentialType$Factory.parse(TaskQueryServiceStub.java:56390)
         at com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryServiceStub$WorkflowContextType$Factory.parse(TaskQueryServiceStub.java:10244)
         at com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryServiceStub$WorkflowContext$Factory.parse(TaskQueryServiceStub.java:55626)
         at com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryServiceStub.fromOM(TaskQueryServiceStub.java:3946)
         ... 2 more
    Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement credential
         at com.oracle.xmlns.bpel.workflow.taskqueryservice.TaskQueryServiceStub$CredentialType$Factory.parse(TaskQueryServiceStub.java:56340)
         ... 5 more
    The java client is generated with wsdl2java from the axis2 project. The produced soap-request is
    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <ns1:credential xmlns:ns1="http://xmlns.oracle.com/bpel/workflow/common">
    <ns1:login>testuser</ns1:login>
         <ns1:password>123456</ns1:password>
    </ns1:credential>
    </soapenv:Body>
    </soapenv:Envelope>
    The response:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://xmlns.oracle.com/bpel/workflow/taskQueryService">
    <env:Body>
    <workflowContext xmlns="http://xmlns.oracle.com/bpel/workflow/common">
    <credential>
    <login>testuser</login>
    </credential>
    <token>c9pHcmBFtc4q7/EY3xGAv/6hhfa6HfGgBPzuIh5Ur+l+ZHU9HP9WBAQoi9x1fRynfEG/gK/hMBSjw2/7ZdTQ8hWDSm4OWnKx9dmELCR9AB4SC0Hp94Q+mPcc0pEjEpQLLEOzQlZI5XvfUIjYYW8Ta5rmTM5p+g1Q8ydtdO6</token>
    </workflowContext>
    </env:Body>
    </env:Envelope>
    Any ideas on this one?

    Thanks for your reply.
    I've tried that too, actually with
    oracle.tip.pc.services.identity.config.ISConfiguration.getDefaultRealmName()
    instead of hardcoding "jazn.com", the result is the same.
    The problem is the missing namespace attribute. I had the same error
    message using an axis2 client. Just that the client request had
    the correct namespace attribute and the TaskQueryService response
    came without the namespace attribute which the axis2 client didn't
    accept (which, I think, is correct).
    I had some success which an axis client which is not that petty.
    I guess it's a bug of the TaskQueryService. The xsd files seem not to be
    consistent with what the Service expects/provides. Strange
    that you don't have the same problem. Which version of
    the SoaSuite do you use?
    What do you mean by "out of the box BPEL seems to use a local XML file for JAZN".
    Local on serverside?
    Regards, Martin

  • Need help with JSSE settings for Axis2 auto-generated client.

    Hi all.
    I have several working clients generated for me in Axis2 from WSDL's using wsdl2java utility. The clients use HTTP transport but I need to use HTTPS now. I assume JSSE is used for SSL communication in Axis2.
    I have created the keystore and set these parameters in code.
    System.setProperty("javax.net.ssl.trustStore", "/path/to/.keystore");
    System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
    The lower level mechanics such as socket creation and utilization are hidden from me in Axis2.
    What other ssl parameters can be set similar to these? I particularly care about protocol, cipher, keep-alive? I couldn''t find the whole list with possible values. Or may be I should use some different method to set them?

    Hi,
    While creating the stub use https as end point instead of http.
    example: https://java.bytesforall.org/webservices
    Configure the properties for the SSL and so that jsse be have accordingly
    https.cipherSuites,javax.net.ssl.trustStore ...etc.
    If you are planning to make your webservice client FIPS complaint. Currently there is a problem with Axis1.4 it is not honoring the property "https.cipherSuites" to use the cipher suites.
    Let me know, if you need any further help
    ~Balaji

  • Axis2 1.3 jars not existing

    I created service skeleton and client from wsdl using wsdl2java on axis2 1.3 . i filled in the business logic in the skeleton i.e. the implementation of the service. Now when i try to compile those java files i get error like "package org.apache.axiom.om does not exist" , "javax.xml.stream does not exist" . i included all axis2 jars which contain these packages . still the error remains .. i am using Java 2 Standard Edition 1.5.0_01 . Can anyone tell me th problem .

    With iPhoto crashing while trying to create a new library makes me think the application may the culprit an you may have to reinstall it. Have you tried the library wihile booted into  Safe Mode?
    Are you able to boot into another user account on your Mac and run iPhoto there?  If so then your home account looks suspicious.
    OT

  • Axis2 (0.94) - transport error : Unauthorized

    Dear all,
    I hving difficulties to consume a custom .Net webservice resides in Ms Sharepoint server. The webservice is tested within a C# windows application and it works fine.
    I used wsdl2java.bat to generate the neccesary stub and helper. When I tried to execute the following program,
    public static void main(String[] args) {
              ServiceSoapStub stub = null;
              String str =null;
              try
                   stub = new ServiceSoapStub();
                   stub.currentUserXml(new ServiceSoapStub.CurrentUserXml());
                   System.out.println(str);
              catch (Exception ex)
                   System.err.println(ex.getMessage());
    I received the following errors
    - Deploying module : addressing
    - ntlm authentication scheme selected
    - No credentials available for NTLM <any realm>@spserver:80
    Axis2 transport error : Unauthorized; nested exception is:
         org.apache.axis2.AxisFault: Axis2 transport error : Unauthorized; nested exception is:
         org.apache.axis2.AxisFault: Axis2 transport error : Unauthorized; nested exception is:
         org.apache.axis2.AxisFault: Axis2 transport error : Unauthorized
    How can I insert the NTLM credential into the stub ? I tried to search around the net for samples but couldn't find any.
    Thanks.
    EchoBomber

    Hi,
    Have you tried going through this doc, about, pre-requisites on MSSharepoint :- http://docs.oracle.com/cd/E21764_01/webcenter.1111/e12405/wcadm_documents.htm#BABDFFDC
    Regards,
    Birender Singh

  • Inconsistent code generation with wsdl2java tool

    I am creating web service using axis2 , with top down approach. Initially thought of using the SOAP based webservices and created the wsdl like below.
    <wsdl:message name="CreateObjInput">
         <wsdl:part name="CreateObjRequest" element="tns:CreateObjectRequest">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="CreateObjOutput">
         <wsdl:part name="CreateObjResponse" element="tns:CreateObjectResponse">
    </wsdl:part>
    </wsdl:message>
    <wsdl:operation name="CreateObjectOperation">
         <wsdl:input name="CreateObjInput" message="tns:CreateObjInput" />
         <wsdl:output name="CreateObjOutput" message="tns:CreateObjOutput" />
    </wsdl:operation>
    <wsdl:operation name="CreateObjectOperation">
         <soap:operation soapAction="http://xyz.com/CreateObject" style="document" />
         <wsdl:input>
         <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
         <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    Wsdl2java generated the service interface like below (Using Axis data bindings)
    public CreateObjectResponse createObjectOperation(CreateObjectRequest request)
    Now at the closure of project decided to convert the service as RESTful service. So I changed the wsdl like below very minimal change.
    <wsdl:message name="CreateObjInput">
         <wsdl:part name="CreateObjRequest" element="tns:CreateObjectRequest">
         </wsdl:part>
    </wsdl:message>
    <wsdl:message name="CreateObjOutput">
         <wsdl:part name="CreateObjResponse" element="tns:CreateObjectResponse">
         </wsdl:part>
    </wsdl:message>
    <wsdl:operation name="CreateObjectOperation">
         <wsdl:input name="CreateObjInput" message="tns:CreateObjInput" wsaw:Action="urn:createObjectRequest"/>
         <wsdl:output name="CreateObjOutput" message="tns:CreateObjOutput" wsaw:Action="urn:createObjectOperationResponse"/>
    </wsdl:operation>
    <wsdl:operation name="CreateObjectOperation">
         <http:operation location="createObjectOperation" />
         <wsdl:input>
              <mime: type="text/xml" part="CreateObjRequest" />
         </wsdl:input>
         <wsdl:output>
              <mime: type="text/xml" part="CreateObjResponse" />
         </wsdl:output>
    </wsdl:operation>
    and the wsdl2java command generated the interface like below.
    public CreateObjectResponse createObjectOperation(CreateObjectOperation createObjectOperation)
    I tried many ways to get the interface definition like in the firstcase but didn't succeeded. This is causing the classname changes in the entire project.
    Didn't understand why its generating interface like this though the wsdl is the same except wsaw actions included.
    Can any one help me the get the inteface generated in compatible with the first case..
    Thanks,
    Sridhar
    Edited by: 917949 on Feb 29, 2012 2:42 PM

    There is a new Version of Code4Flex Alpha 0.0.9.
    http://sourceforge.net/projects/code4flex
    This version is for Ganymede Eclipse.
    Enjoy
    Code4Flex Team

  • Help needed with wsdl2java tool

    I am creating web service using axis2 , with top down approach. Initially thought of using the SOAP based webservices and created the wsdl like below.
    <wsdl:message name="CreateObjInput">
    <wsdl:part name="CreateObjRequest" element="tns:CreateObjectRequest">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="CreateObjOutput">
    <wsdl:part name="CreateObjResponse" element="tns:CreateObjectResponse">
    </wsdl:part>
    </wsdl:message>
    <wsdl:operation name="CreateObjectOperation">
    <wsdl:input name="CreateObjInput" message="tns:CreateObjInput" />
    <wsdl:output name="CreateObjOutput" message="tns:CreateObjOutput" />
    </wsdl:operation>
    <wsdl:operation name="CreateObjectOperation">
    <soap:operation soapAction="http://xyz.com/CreateObject" style="" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    Wsdl2java generated the service interface like below (Using Axis data bindings)
    public CreateObjectResponse createObjectOperation(CreateObjectRequest request)
    Now at the closure of project decided to convert the service as RESTful service. So I changed the wsdl like below very minimal change.
    <wsdl:message name="CreateObjInput">
    <wsdl:part name="CreateObjRequest" element="tns:CreateObjectRequest">
    </wsdl:part>
    </wsdl:message>
    <wsdl:message name="CreateObjOutput">
    <wsdl:part name="CreateObjResponse" element="tns:CreateObjectResponse">
    </wsdl:part>
    </wsdl:message>
    <wsdl:operation name="CreateObjectOperation">
    <wsdl:input name="CreateObjInput" message="tns:CreateObjInput" wsaw:Action="urn:createObjectRequest"/>
    <wsdl:output name="CreateObjOutput" message="tns:CreateObjOutput" wsaw:Action="urn:createObjectOperationResponse"/>
    </wsdl:operation>
    <wsdl:operation name="CreateObjectOperation">
    <http:operation location="createObjectOperation" />
    <wsdl:input>
    <mime: type="text/xml" part="CreateObjRequest" />
    </wsdl:input>
    <wsdl:output>
    <mime: type="text/xml" part="CreateObjResponse" />
    </wsdl:output>
    </wsdl:operation>
    and the wsdl2java command generated the interface like below.
    public CreateObjectResponse createObjectOperation(CreateObjectOperation createObjectOperation)
    I tried many ways to get the interface definition like in the firstcase but didn't succeeded. This is causing the classname changes in the entire project.
    Didn't understand why its generating interface like this though the wsdl is the same except wsaw actions included.
    Can any one help me the get the inteface generated in compatible with the first case..
    Thanks,
    Sridhar

    The second issue is because sometimes you have only two end points that cane be joined all the other anchors are joined, but you also have more the just two end ponts select when you have to have just the two end points in this particualr scenario.
    if you have several open paths and you want to join then and you all the points selected then the end poitns will join.
    BTW I think you shold have marked Monika's response as the answer so other uses could find it more readily.

Maybe you are looking for

  • Windows 8 and bootcamp stuff

    I am a gamer. (just to tell you) The PC games that I own are for...well PCs, I used to use them on the family computer but the other newer ones are a bit violent and my parents don't like my younger brother watching. So I decided to use boot camp on

  • ON Query reporting

    hi,    i have heard about SAP -Querry reporting tool , is it any requirement to learn this tool.just clarification. regards pushpa

  • Want JDk 1.4 for Linux(64 bit) RHEL4

    Hi all, I want to download JDK 1.4 for Linux 64 bit. I checked on sun.java.com,But I just got JDK 1.4 for 32 bit Linux machine. And there is JDK for 64 bit Linux intel itanium, which i m not abe to install on my Liux machine (with AMD architecure). D

  • BP Update from BW

    Hi All, Can you suggest how i can update the BP data from BW like Marketing Attributes etc.. Regards Arun Kumar

  • Restart of workflow

    Hi, I need to use SWPR transaction to restart a workitem id. Is there any function module which can do the same means restart of a workflow. Sandeep garg