facebook

xfire Deserialisation failed from generated webservice

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #267540 Reply

    devlin
    Member

    Hello,
    I created a webservice using SAP and imported the wsdl into myeclipse to run the webservice, upon executing the client code I am getting the following error

    14:20:57,688 DEBUG content:83 – << “<soap-env:Envelope xmlns:soap-env=”http://schemas.xmlsoap.org/soap/envelope/”><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang=”en”>Deserialisation failed</faultstring><detail><n0:SimpleTransformationFault xmlns:n0=”http://www.sap.com/transformation-templates”><MainName>/1BCDWB/WSS0070314220247356663</MainName><ProgName>/1BCDWB/WSS0070314220247356663</ProgName><Line>13 </Line><Valid>X</Valid><MatchFault><DescriptionText>System expected element ‘NotificationDetail'</DescriptionText><TokenType>E</TokenType><TokenName>ZGetNotificationTypes</TokenName><TokenNameSpace>urn:sap-com:document:sap:soap:functions:mc-style</TokenNameSpace><TokenValue></TokenValue></MatchFault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE</Method><Positions>1 </Positions></Caller></n0:SimpleTransformationFault></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>”
    Exception in thread “main” org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Deserialisation failed
    org.codehaus.xfire.fault.XFireFault: Deserialisation failed

    Is there anything I can do about this, as when I use other tools it seems to handle this okay?

    Cheers, all help would be greatly appreciated
    Devlin

    #267607 Reply

    Riyad Kalla
    Member

    Devlin,
    Did you generate the WS Client using MyEclipse or did you mean you are using the WS Explorer?

    #267615 Reply

    devlin
    Member

    No I did it all through Myeclipse the error is after adding my code to the generated client

    #267626 Reply

    Riyad Kalla
    Member

    Is there more information lower down in the error? That error doesn’t help too much.

    #267628 Reply

    devlin
    Member

    Here is the full console with log4j set at debug

    10:49:02,437 DEBUG DefaultTransportManager:77 – Registered transport org.codehaus.xfire.transport.local.LocalTransport@1cdeff
    10:49:02,437 DEBUG DefaultTransportManager:77 – Registered transport org.codehaus.xfire.transport.dead.DeadLetterTransport@106082
    10:49:02,448 DEBUG DefaultTransportManager:77 – Registered transport org.codehaus.xfire.transport.http.SoapHttpTransport@edc3a2
    10:49:02,448 DEBUG DefaultTransportManager:77 – Registered transport org.codehaus.xfire.transport.http.HttpTransport@1c6f579
    Start of call
    Getting types
    10:49:03,279 DEBUG XFireProxy:50 – Method [zGetNotificationTypes] [com.sap.document.sap.soap.functions.mc_style.ZGetNotificationTypes@13d28e3]
    10:49:03,289 DEBUG HttpTransport:34 – Creating new channel for uri: urn:xfire:transport:http:11743265432890-962873913
    10:49:03,299 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.handler.OutMessageSender@f42ad0 to phase send
    10:49:03,299 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.soap.handler.SoapActionOutHandler@26dbec to phase transport
    10:49:03,369 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.soap.handler.SoapSerializerHandler@1309e87 to phase post-invoke
    10:49:03,369 DEBUG HandlerPipeline:115 – Invoking phase post-invoke
    10:49:03,369 DEBUG HandlerPipeline:129 – Invoking handler org.codehaus.xfire.soap.handler.SoapSerializerHandler in phase post-invoke
    10:49:03,369 DEBUG HandlerPipeline:115 – Invoking phase policy
    10:49:03,369 DEBUG HandlerPipeline:115 – Invoking phase user
    10:49:03,369 DEBUG HandlerPipeline:115 – Invoking phase transport
    10:49:03,369 DEBUG HandlerPipeline:129 – Invoking handler org.codehaus.xfire.soap.handler.SoapActionOutHandler in phase transport
    10:49:03,369 DEBUG HandlerPipeline:115 – Invoking phase send
    10:49:03,369 DEBUG HandlerPipeline:129 – Invoking handler org.codehaus.xfire.handler.OutMessageSender in phase send
    10:49:03,389 DEBUG HttpClient:71 – Java version: 1.5.0_11
    10:49:03,389 DEBUG HttpClient:72 – Java vendor: Sun Microsystems Inc.
    10:49:03,399 DEBUG HttpClient:73 – Java class path: C:\build\TestMyEclipseWebService\classes;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\activation-1.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\commons-beanutils-1.7.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\commons-codec-1.3.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\commons-logging-1.0.4.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jaxws-api-2.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jaxen-1.1-beta-9.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jdom-1.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\mail-1.4.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\saaj-api-1.3.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\saaj-impl-1.3.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\spring-1.2.6.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\stax-api-1.0.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\wsdl4j-1.5.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\wstx-asl-3.0.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xbean-2.1.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xbean-spring-2.5.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-aegis-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-annotations-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-core-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-java5-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-jaxws-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-spring-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-jsr181-api-1.0-M1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jsr173_api-1.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\XmlSchema-1.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\commons-httpclient-3.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\org.mortbay.jetty-5.1.3.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-jaxb2-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jaxb-api-2.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jaxb-impl-2.0.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jaxb-xjc-2.0.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-jaxb-1.1.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jaxb-api-1.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\jaxb-impl-1.0.5.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\relaxngDatatype-20050913.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\stax-utils-snapshot-20040917.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xsdlib-20050913.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xml-apis-1.0.b2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xercesImpl-2.6.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-xmlbeans-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\bcprov-jdk15-133.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\commons-discovery-0.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\opensaml-1.0.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\wss4j-1.5.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-ws-security-1.2.2.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xmlsec-1.3.0.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\commons-attributes-api-2.1.jar;C:\Program Files\MyEclipse 5.0GA\eclipse\plugins\com.genuitec.eclipse.ws.xfire_5.1.1\data\1.2\lib\xfire-generator-1.2.2.jar;C:\build\TestSecurity\lib\log4j-1.2.13.jar
    10:49:03,419 DEBUG HttpClient:74 – Operating system name: Windows XP
    10:49:03,419 DEBUG HttpClient:75 – Operating system architecture: x86
    10:49:03,429 DEBUG HttpClient:76 – Operating system version: 5.1
    10:49:03,629 DEBUG HttpClient:81 – SUN 1.5: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores)
    10:49:03,639 DEBUG HttpClient:81 – SunRsaSign 1.5: Sun RSA signature provider
    10:49:03,639 DEBUG HttpClient:81 – SunJSSE 1.5: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
    10:49:03,639 DEBUG HttpClient:81 – SunJCE 1.5: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
    10:49:03,639 DEBUG HttpClient:81 – SunJGSS 1.0: Sun (Kerberos v5)
    10:49:03,639 DEBUG HttpClient:81 – SunSASL 1.5: Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5)
    10:49:03,659 DEBUG DefaultHttpParams:150 – Set parameter http.useragent = Jakarta Commons-HttpClient/3.0
    10:49:03,659 DEBUG DefaultHttpParams:150 – Set parameter http.protocol.version = HTTP/1.1
    10:49:03,669 DEBUG DefaultHttpParams:150 – Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager
    10:49:03,669 DEBUG DefaultHttpParams:150 – Set parameter http.protocol.cookie-policy = rfc2109
    10:49:03,669 DEBUG DefaultHttpParams:150 – Set parameter http.protocol.element-charset = US-ASCII
    10:49:03,669 DEBUG DefaultHttpParams:150 – Set parameter http.protocol.content-charset = ISO-8859-1
    10:49:03,679 DEBUG DefaultHttpParams:150 – Set parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@2f0df1
    10:49:03,679 DEBUG DefaultHttpParams:150 – Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
    10:49:03,709 DEBUG DefaultHttpParams:150 – Set parameter http.useragent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire Client +http://xfire.codehaus.org)
    10:49:03,709 DEBUG DefaultHttpParams:150 – Set parameter http.protocol.expect-continue = true
    10:49:03,709 DEBUG DefaultHttpParams:150 – Set parameter http.protocol.version = HTTP/1.1
    10:49:04,841 DEBUG PostMethod:151 – enter PostMethod.clearRequestBody()
    10:49:04,851 DEBUG EntityEnclosingMethod:149 – enter EntityEnclosingMethod.clearRequestBody()
    10:49:04,851 DEBUG HttpClient:373 – enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
    10:49:04,861 DEBUG MultiThreadedHttpConnectionManager:383 – enter HttpConnectionManager.getConnectionWithTimeout(HostConfiguration, long)
    10:49:04,861 DEBUG MultiThreadedHttpConnectionManager:390 – HttpConnectionManager.getConnection: config = HostConfiguration[host=http://r3dbt1.sempra.com:8000], timeout = 0
    10:49:04,881 DEBUG MultiThreadedHttpConnectionManager:775 – enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
    10:49:04,881 DEBUG MultiThreadedHttpConnectionManager:775 – enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
    10:49:04,881 DEBUG MultiThreadedHttpConnectionManager:739 – Allocating new connection, hostConfig=HostConfiguration[host=http://r3dbt1.sempra.com:8000]
    10:49:04,891 DEBUG HttpMethodDirector:378 – Attempt number 1 to process request
    10:49:04,891 DEBUG HttpConnection:684 – enter HttpConnection.open()
    10:49:04,901 DEBUG HttpConnection:691 – Open connection to r3dbt1.sempra.com:8000
    10:49:04,911 DEBUG HttpMethodBase:976 – enter HttpMethodBase.execute(HttpState, HttpConnection)
    10:49:04,911 DEBUG HttpMethodBase:1916 – enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
    10:49:04,911 DEBUG HttpMethodBase:2071 – enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
    10:49:04,911 DEBUG HttpMethodBase:1379 – enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String)
    10:49:04,921 DEBUG header:69 – >> “POST /sap/bc/srt/rfc/sap/Z_GET_NOTIFICATION_TYPES_VI?sap-client=200 HTTP/1.1[\r][\n]”
    10:49:04,931 DEBUG HttpConnection:1031 – enter HttpConnection.print(String)
    10:49:04,931 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,931 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,931 DEBUG HttpMethodBase:2034 – enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
    10:49:04,941 DEBUG EntityEnclosingMethod:366 – enter EntityEnclosingMethod.addRequestHeaders(HttpState, HttpConnection)
    10:49:04,941 DEBUG ExpectContinueMethod:182 – enter ExpectContinueMethod.addRequestHeaders(HttpState, HttpConnection)
    10:49:04,941 DEBUG HttpMethodBase:1300 – enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
    10:49:04,941 DEBUG HttpMethodBase:1325 – enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
    10:49:04,941 DEBUG HttpMethodBase:1211 – enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
    10:49:04,941 DEBUG HttpMethodBase:1235 – Adding Host request header
    10:49:04,941 DEBUG HttpMethodBase:1163 – enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
    10:49:04,961 DEBUG HttpState:172 – enter HttpState.getCookies()
    10:49:04,961 DEBUG CookieSpec:548 – enter CookieSpecBase.match(String, int, String, boolean, Cookie[])
    10:49:04,961 DEBUG HttpMethodBase:1262 – enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
    10:49:04,961 DEBUG PostMethod:134 – enter PostMethod.hasRequestContent()
    10:49:04,961 DEBUG EntityEnclosingMethod:134 – enter EntityEnclosingMethod.hasRequestContent()
    10:49:04,961 DEBUG EntityEnclosingMethod:397 – enter EntityEnclosingMethod.addContentLengthRequestHeader(HttpState, HttpConnection)
    10:49:04,961 DEBUG EntityEnclosingMethod:321 – enter EntityEnclosingMethod.getRequestContentLength()
    10:49:04,961 DEBUG PostMethod:134 – enter PostMethod.hasRequestContent()
    10:49:04,961 DEBUG EntityEnclosingMethod:134 – enter EntityEnclosingMethod.hasRequestContent()
    10:49:04,961 DEBUG HttpMethodBase:382 – HttpMethodBase.addRequestHeader(Header)
    10:49:04,961 DEBUG header:69 – >> “SOAPAction: “”[\r][\n]”
    10:49:04,961 DEBUG HttpConnection:1031 – enter HttpConnection.print(String)
    10:49:04,961 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,961 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,961 DEBUG header:69 – >> “Content-Type: text/xml; charset=UTF-8[\r][\n]”
    10:49:04,961 DEBUG HttpConnection:1031 – enter HttpConnection.print(String)
    10:49:04,961 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,961 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,971 DEBUG header:69 – >> “User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire Client +http://xfire.codehaus.org)[\r][\n]”
    10:49:04,971 DEBUG HttpConnection:1031 – enter HttpConnection.print(String)
    10:49:04,971 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,971 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,971 DEBUG header:69 – >> “Host: r3dbt1.sempra.com:8000[\r][\n]”
    10:49:04,971 DEBUG HttpConnection:1031 – enter HttpConnection.print(String)
    10:49:04,971 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,971 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,971 DEBUG header:69 – >> “Expect: 100-continue[\r][\n]”
    10:49:04,971 DEBUG HttpConnection:1031 – enter HttpConnection.print(String)
    10:49:04,971 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,981 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,981 DEBUG header:69 – >> “Content-Length: 298[\r][\n]”
    10:49:04,981 DEBUG HttpConnection:1031 – enter HttpConnection.print(String)
    10:49:04,981 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,991 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,991 DEBUG HttpConnection:1000 – enter HttpConnection.writeLine()
    10:49:04,991 DEBUG HttpConnection:941 – enter HttpConnection.write(byte[])
    10:49:04,991 DEBUG HttpConnection:962 – enter HttpConnection.write(byte[], int, int)
    10:49:04,991 DEBUG header:69 – >> “[\r][\n]”
    10:49:04,991 DEBUG HttpConnection:825 – enter HttpConnection.flushRequestOutputStream()
    10:49:04,991 DEBUG HttpMethodBase:1823 – enter HttpMethodBase.readStatusLine(HttpState, HttpConnection)
    10:49:04,991 DEBUG HttpConnection:1112 – enter HttpConnection.readLine()
    10:49:04,991 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,001 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,001 DEBUG header:69 – << “HTTP/1.1 100 Continue[\r][\n]”
    10:49:05,001 DEBUG HttpMethodBase:1785 – enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
    10:49:05,001 DEBUG HttpConnection:856 – enter HttpConnection.getResponseInputStream()
    10:49:05,001 DEBUG HttpParser:159 – enter HeaderParser.parseHeaders(InputStream, String)
    10:49:05,001 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,001 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,001 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,001 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,001 DEBUG header:69 – << “Server: SAP Web Application Server (ICM)[\r][\n]”
    10:49:05,001 DEBUG HttpMethodBase:1462 – enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
    10:49:05,001 DEBUG HttpMethodBase:1949 – OK to continue received
    10:49:05,001 DEBUG EntityEnclosingMethod:465 – enter EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection)
    10:49:05,001 DEBUG PostMethod:134 – enter PostMethod.hasRequestContent()
    10:49:05,001 DEBUG EntityEnclosingMethod:134 – enter EntityEnclosingMethod.hasRequestContent()
    10:49:05,001 DEBUG EntityEnclosingMethod:321 – enter EntityEnclosingMethod.getRequestContentLength()
    10:49:05,001 DEBUG PostMethod:134 – enter PostMethod.hasRequestContent()
    10:49:05,001 DEBUG EntityEnclosingMethod:134 – enter EntityEnclosingMethod.hasRequestContent()
    10:49:05,011 DEBUG HttpConnection:839 – enter HttpConnection.getRequestOutputStream()
    10:49:05,011 DEBUG content:83 – >> “<soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”><soap:Body><ns2:ZGetNotificationTypes xmlns:ns2=”urn:sap-com:document:sap:soap:functions:mc-style” /></soap:Body></soap:Envelope>”
    10:49:05,011 DEBUG EntityEnclosingMethod:504 – Request body sent
    10:49:05,011 DEBUG HttpConnection:825 – enter HttpConnection.flushRequestOutputStream()
    10:49:05,011 DEBUG HttpMethodBase:1585 – enter HttpMethodBase.readResponse(HttpState, HttpConnection)
    10:49:05,011 DEBUG HttpMethodBase:1823 – enter HttpMethodBase.readStatusLine(HttpState, HttpConnection)
    10:49:05,011 DEBUG HttpConnection:1112 – enter HttpConnection.readLine()
    10:49:05,011 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,011 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,051 DEBUG header:69 – << “HTTP/1.1 500 Internal Server Error[\r][\n]”
    10:49:05,051 DEBUG HttpMethodBase:1785 – enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
    10:49:05,051 DEBUG HttpConnection:856 – enter HttpConnection.getResponseInputStream()
    10:49:05,051 DEBUG HttpParser:159 – enter HeaderParser.parseHeaders(InputStream, String)
    10:49:05,051 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,051 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,051 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,051 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,051 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,081 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,081 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,081 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,081 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,081 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,141 DEBUG HttpParser:104 – enter HttpParser.readLine(InputStream, String)
    10:49:05,141 DEBUG HttpParser:73 – enter HttpParser.readRawLine()
    10:49:05,141 DEBUG header:69 – << “set-cookie: sap-usercontext=sap-client=200; path=/[\r][\n]”
    Exception in thread “main” org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Deserialisation failed
    org.codehaus.xfire.fault.XFireFault: Deserialisation failed
    at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
    at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
    at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
    at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:382)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
    at org.codehaus.xfire.client.Client.invoke(Client.java:335)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy13.zGetNotificationTypes(Unknown Source)
    at com.sempra.ws.Z_GET_NOTIFICATION_TYPES_VIServiceClient.main(Z_GET_NOTIFICATION_TYPES_VIServiceClient.java:150)
    10:49:05,141 DEBUG header:69 – << “content-type: text/xml; charset=utf-8[\r][\n]”
    10:49:05,172 DEBUG header:69 – << “content-length: 933[\r][\n]”
    10:49:05,172 DEBUG header:69 – << “sap-srt_id: 20070319/104904/v1.00_final_6.40/45FD59A5E1D4009B000000000AC07878[\r][\n]”
    10:49:05,172 DEBUG header:69 – << “server: SAP Web Application Server (1.0;700)[\r][\n]”
    10:49:05,172 DEBUG HttpMethodBase:1462 – enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
    10:49:05,172 DEBUG CookieSpec:242 – enter CookieSpecBase.parse(String, port, path, boolean, String)
    10:49:05,172 DEBUG CookieSpec:112 – enter CookieSpecBase.parse(String, port, path, boolean, Header)
    10:49:05,202 DEBUG HeaderElement:193 – enter HeaderElement.parseElements(char[])
    10:49:05,242 DEBUG Cookie:108 – enter Cookie(String, String, String, String, Date, boolean)
    10:49:05,242 DEBUG CookieSpec:130 – enter RFC2109Spec.validate(String, int, String, boolean, Cookie)
    10:49:05,242 DEBUG CookieSpec:368 – enter CookieSpecBase.validate(String, port, path, boolean, Cookie)
    10:49:05,252 DEBUG HttpState:124 – enter HttpState.addCookie(Cookie)
    10:49:05,252 DEBUG CookieSpec:243 – enter RFC2109Spec.formatCookie(Cookie)
    10:49:05,272 DEBUG HttpMethodBase:1506 – Cookie accepted: “$Version=0; sap-usercontext=sap-client=200; $Path=/”
    10:49:05,272 DEBUG HttpMethodBase:1636 – enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
    10:49:05,272 DEBUG HttpMethodBase:1671 – enter HttpMethodBase.readResponseBody(HttpConnection)
    10:49:05,282 DEBUG HttpConnection:856 – enter HttpConnection.getResponseInputStream()
    10:49:05,282 DEBUG HttpMethodBase:2140 – enter HttpMethodBase.canResponseHaveBody(int)
    10:49:05,392 DEBUG content:83 – << “<soap-env:Envelope xmlns:soap-env=”http://schemas.xmlsoap.org/soap/envelope/”><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang=”en”>Deserialisation failed</faultstring><detail><n0:SimpleTransformationFault xmlns:n0=”http://www.sap.com/transformation-templates”><MainName>/1BCDWB/WSS0070314220247356663</MainName><ProgName>/1BCDWB/WSS0070314220247356663</ProgName><Line>13 </Line><Valid>X</Valid><MatchFault><DescriptionText>System expected element ‘NotificationDetail'</DescriptionText><TokenType>E</TokenType><TokenName>ZGetNotificationTypes</TokenName><TokenNameSpace>urn:sap-com:document:sap:soap:functions:mc-style</TokenNameSpace><TokenValue></TokenValue></MatchFault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE</Method><Positions>1 </Positions></Caller></n0:SimpleTransformationFault></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>”
    10:49:05,462 DEBUG Client:354 – Received message to http://r3dbt1.sempra.com:8000/sap/bc/srt/rfc/sap/Z_GET_NOTIFICATION_TYPES_VI?sap-client=200
    10:49:05,462 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.client.CorrelatorHandler@1570945 to phase pre-dispatch
    10:49:05,462 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.soap.handler.ReadHeadersHandler@121b59a to phase parse
    10:49:05,462 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.soap.handler.ValidateHeadersHandler@19a37a to phase pre-invoke
    10:49:05,472 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.handler.LocateBindingHandler@13bdd36 to phase dispatch
    10:49:05,472 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.soap.handler.SoapActionInHandler@1381960 to phase dispatch
    10:49:05,472 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.soap.handler.SoapBodyHandler@9fa8f to phase dispatch
    10:49:05,472 DEBUG HandlerPipeline:115 – Invoking phase transport
    10:49:05,472 DEBUG HandlerPipeline:115 – Invoking phase parse
    10:49:05,472 DEBUG HandlerPipeline:129 – Invoking handler org.codehaus.xfire.soap.handler.ReadHeadersHandler in phase parse
    10:49:05,502 DEBUG HttpMethodBase:921 – Resorting to protocol version default close connection policy
    10:49:05,502 DEBUG HttpMethodBase:925 – Should NOT close connection, using HTTP/1.1
    10:49:05,512 DEBUG HttpConnection:873 – enter HttpConnection.isResponseAvailable()
    10:49:05,512 DEBUG HttpConnection:1173 – enter HttpConnection.releaseConnection()
    10:49:05,512 DEBUG HttpConnection:1177 – Releasing connection back to connection manager.
    10:49:05,512 DEBUG MultiThreadedHttpConnectionManager:610 – enter HttpConnectionManager.releaseConnection(HttpConnection)
    10:49:05,512 DEBUG MultiThreadedHttpConnectionManager:943 – Freeing connection, hostConfig=HostConfiguration[host=http://r3dbt1.sempra.com:8000]
    10:49:05,512 DEBUG MultiThreadedHttpConnectionManager:775 – enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
    10:49:05,512 DEBUG IdleConnectionHandler:75 – Adding connection at: 1174326545512
    10:49:05,522 DEBUG MultiThreadedHttpConnectionManager:926 – Notifying no-one, there are no waiting threads
    10:49:05,522 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.client.ClientFaultConverter@19da967 to phase user
    10:49:05,522 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.client.CorrelatorHandler@1570945 to phase pre-dispatch
    10:49:05,522 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.soap.handler.FaultSoapSerializerHandler@1dcc2a3 to phase post-invoke
    10:49:05,522 DEBUG HandlerPipeline:71 – Phase post-invoke does not exist. Skipping handler org.codehaus.xfire.soap.handler.FaultSoapSerializerHandler
    10:49:05,522 DEBUG HandlerPipeline:115 – Invoking phase transport
    10:49:05,522 DEBUG HandlerPipeline:115 – Invoking phase parse
    10:49:05,522 DEBUG HandlerPipeline:115 – Invoking phase pre-dispatch
    10:49:05,522 DEBUG HandlerPipeline:129 – Invoking handler org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch
    10:49:05,522 DEBUG Client:32 – Correlating context with ID 11743265432891-2077767285
    10:49:05,522 DEBUG Client:50 – Found correlated context with ID 11743265432891-2077767285
    10:49:05,522 DEBUG HandlerPipeline:64 – adding handler org.codehaus.xfire.client.ClientReceiveHandler@943dc4 to phase service
    10:49:05,522 DEBUG HandlerPipeline:115 – Invoking phase dispatch
    10:49:05,522 DEBUG HandlerPipeline:115 – Invoking phase policy
    10:49:05,522 DEBUG HandlerPipeline:115 – Invoking phase user
    10:49:05,532 DEBUG HandlerPipeline:129 – Invoking handler org.codehaus.xfire.client.ClientFaultConverter in phase user
    10:49:05,532 DEBUG HandlerPipeline:115 – Invoking phase pre-invoke
    10:49:05,532 DEBUG HandlerPipeline:115 – Invoking phase service
    10:49:05,532 DEBUG HandlerPipeline:129 – Invoking handler org.codehaus.xfire.client.ClientReceiveHandler in phase service

    #267630 Reply

    devlin
    Member

    Sorry I figured it out 🙂

    In the process I downloaded Axis and from the error message it was giving me, NotificationDetail cannot be null? Weird I added a empty detail container in the xfire ws and voila it worked 🙂

    Hmm not that it works all is good just wish the error message would have been more informative 🙂 But I guess thats why we do this for the headaches of being stumped then the satisfaction of figuring it out 🙂

    Cheers,
    Devlin

    #267633 Reply

    Riyad Kalla
    Member

    Devlin,
    Great catch, I was scratching my head on this one.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: xfire Deserialisation failed from generated webservice

You must be logged in to post in the forum log in