on 09-05-2007 6:57 AM
Hi Guys,
I created a deployable proxy using the below WSDL. It looks like the project & ear are created successfully. But when I try to deploy the ear file, I get following error. Does anyone have any clue what could be going wrong?
Thanking in anticipation.
Regards,
-Vaibhav.
<u><b>WSDL:</b></u>
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:axis2="http://test.sap.com/traceanalysis/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://traceanalysis.dto.test.sap.com/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://test.sap.com/traceanalysis/xsd/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://test.sap.com/traceanalysis/">
<wsdl:documentation>Test service</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ax22="http://traceanalysis.dto.test.sap.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://traceanalysis.dto.test.sap.com/xsd">
<xs:element name="TraceResultCollection" type="ax22:TraceResultCollection" />
<xs:complexType name="TraceResultCollection">
<xs:sequence>
<xs:element name="logistics" nillable="true" type="ax22:Logistics" />
<xs:element name="production" nillable="true" type="ax22:Production" />
</xs:sequence>
</xs:complexType>
<xs:element name="Logistics" type="ax22:Logistics" />
<xs:complexType name="Logistics">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="movement" nillable="true" type="ax22:Movement" />
</xs:sequence>
</xs:complexType>
<xs:element name="Movement" type="ax22:Movement" />
<xs:complexType name="Movement">
<xs:sequence>
<xs:element name="customerNo" nillable="true" type="xs:string" />
<xs:element name="scanDate" nillable="true" type="xs:string" />
<xs:element name="shipmentNo" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="Production" type="ax22:Production" />
<xs:complexType name="Production">
<xs:sequence>
<xs:element name="batchNo" nillable="true" type="xs:string" />
<xs:element name="palletCode" nillable="true" type="xs:string" />
<xs:element name="productionDate" nillable="true" type="xs:string" />
<xs:element name="shipperCode" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:ns="http://test.sap.com/traceanalysis/xsd/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://test.sap.com/traceanalysis/xsd/">
<xs:element name="getTraceResultsFault">
<xs:complexType>
<xs:sequence>
<xs:element name="getTraceResultsFault" type="xs:anyType" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getTraceResults">
<xs:complexType>
<xs:sequence>
<xs:element name="product" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getTraceResultsResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" nillable="true" type="ns0:TraceResultCollection" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="getTraceResultsMessage">
<wsdl:part name="part1" element="ns1:getTraceResults" />
</wsdl:message>
<wsdl:message name="getTraceResultsResponse">
<wsdl:part name="part1" element="ns1:getTraceResultsResponse" />
</wsdl:message>
<wsdl:message name="getTraceResultsFault">
<wsdl:part name="part1" element="ns1:getTraceResultsFault" />
</wsdl:message>
<wsdl:portType name="TraceAnalysisServicePortType">
<wsdl:operation name="getTraceResults">
<wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:getTraceResultsMessage" wsaw:Action="urn:getTraceResults" />
<wsdl:output message="axis2:getTraceResultsResponse" />
<wsdl:fault message="axis2:getTraceResultsFault" name="getTraceResultsFault" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TraceAnalysisServiceSOAP11Binding" type="axis2:TraceAnalysisServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="getTraceResults">
<soap:operation soapAction="urn:getTraceResults" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="getTraceResultsFault">
<soap:body use="literal" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="TraceAnalysisServiceSOAP12Binding" type="axis2:TraceAnalysisServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="getTraceResults">
<soap12:operation soapAction="urn:getTraceResults" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="getTraceResultsFault">
<soap12:fault use="literal" name="getTraceResultsFault" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="TraceAnalysisServiceHttpBinding" type="axis2:TraceAnalysisServicePortType">
<http:binding verb="POST" />
<wsdl:operation name="getTraceResults">
<http:operation location="getTraceResults" />
<wsdl:input>
<mime:content type="text/xml" />
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TraceAnalysisService">
<wsdl:port name="TraceAnalysisServiceSOAP11port_http" binding="axis2:TraceAnalysisServiceSOAP11Binding">
<soap:address location="http://localhost:8080/proj1/services/TraceAnalysisService" />
</wsdl:port>
<wsdl:port name="TraceAnalysisServiceSOAP12port_http" binding="axis2:TraceAnalysisServiceSOAP12Binding">
<soap12:address location="http://localhost:8080/proj1/services/TraceAnalysisService" />
</wsdl:port>
<wsdl:port name="TraceAnalysisServiceHttpport1" binding="axis2:TraceAnalysisServiceHttpBinding">
<http:address location="http://localhost:8080/proj1/rest/TraceAnalysisService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Hi Vaibhav,
i think you forgot to include the Beanmethod in the virtual Interface / WebService?
Bye
alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry guys forgot to attach the error message.
[001]Deployment aborted
Settings
SDM host : sapep
SDM port : 50118
URL to deploy : file:/C:/DOCUME1/LOCALS1/Temp/temp24020tntwsdep.ear
Result
=> deployment aborted : file:/C:/DOCUME1/LOCALS1/Temp/temp24020tntwsdep.ear
Aborted: development component 'tntwsdep'/'sap.com'/'localhost'/'2007.09.04.11.34.50':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application sap.com/tntwsdep.. Reason: Webservices common deployment exception! The reason is: Error occured, trying to generate deployment files for ws client com.patni.test.MvmtClientProxy, application sap.com/tntwsdep. . Additional info: none; nested exception is: java.lang.Exception: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occured, trying to generate deployment files for ws client com.patni.test.MvmtClientProxy, application sap.com/tntwsdep. . Additional info: none
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateSingleWSClientDeployFiles(WSClientsDeployGenerator.java:194)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateSingleWSClientDeployFiles(WSClientsDeployGenerator.java:167)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateWSClientsDeployFiles0(WSClientsDeployGenerator.java:155)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateWSClientsDeployFiles(WSClientsDeployGenerator.java:139)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateWSClientsDeployFiles0(WSClientsDeployGenerator.java:129)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateWSClientsDeployFiles(WSClientsDeployGenerator.java:91)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateDeployFiles(WSClientsDeployGenerator.java:46)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployManager.deploy(WSClientsDeployManager.java:56)
at com.sap.engine.services.webservices.server.deploy.WSDeployer.deploy(WSDeployer.java:159)
at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:594)
at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:290)
at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:296)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3064)
at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:481)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occured generating ws client proxy files. Package error. . Additional info:
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientProxyGenerator.generateAndPackageProxyFiles(WSClientProxyGenerator.java:61)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientsDeployGenerator.generateSingleWSClientDeployFiles(WSClientsDeployGenerator.java:188)
... 25 more
Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: WS clients deployment exception! The reason is: Error occured generating proxy files for ws client. . The error refers to application: sap.com/tntwsdep, jar: tntwsdep.wsar, web service: com.patni.test.MvmtClientProxy.
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientProxyGenerator.generateProxy(WSClientProxyGenerator.java:133)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientProxyGenerator.generateAndPackageProxyFiles(WSClientProxyGenerator.java:53)
... 26 more
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Proxy generation problem. See nested exception.
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:244)
at com.sap.engine.services.webservices.server.deploy.wsclient.WSClientProxyGenerator.generateProxy(WSClientProxyGenerator.java:126)
... 27 more
Caused by: com.sap.engine.lib.xml.util.NestedException: only application/x-www-form-urlencoded is possible as http binding request content type !
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.httpgetpost.HttpGetPostBinding.getOperationBindingConfig(HttpGetPostBinding.java:190)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClassGenerator.processOperation(ClassGenerator.java:1952)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClassGenerator.stubGenerate(ClassGenerator.java:1543)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClassGenerator.generateImplementation(ClassGenerator.java:838)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:230)
... 28 more
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Deployment exception : The deployment of at least one item aborted
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vaibhav,
I still wonder how following thing will work for you..
<wsdl:service name="TraceAnalysisService">
<wsdl:port name="TraceAnalysisServiceSOAP11port_http" binding="axis2:TraceAnalysisServiceSOAP11Binding">
<soap:address location="http://localhost:8080/proj1/services/TraceAnalysisService" />
</wsdl:port>
<wsdl:port name="TraceAnalysisServiceSOAP12port_http" binding="axis2:TraceAnalysisServiceSOAP12Binding">
<soap12:address location="http://localhost:8080/proj1/services/TraceAnalysisService" />
</wsdl:port>
<wsdl:port name="TraceAnalysisServiceHttpport1" binding="axis2:TraceAnalysisServiceHttpBinding">
<http:address location="http://localhost:8080/proj1/rest/TraceAnalysisService" />
</wsdl:port>
Ashu
wheres the error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.