Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Webservice error between was5client and was4server, SOAP.jar problem?

2 views
Skip to first unread message

Peter Johansson

unread,
May 14, 2004, 9:40:09 AM5/14/04
to

I have a problem with at webservice client runing on was 5.0 (WebSphere
Platform 5.0 [BASE 5.0.2 ptf2M0325.01])
and the webservice runing on was4 (WebSphere AE 4.0.4 ptf40230.02 and
WebSphere AEs 4.0.6 ptf60319.01).
Som of the responses is handle correct but some is not.

The webservice runtime is Apache Soap on both server and client but with
different versions. The client has been generated with wsad 5.0 from the
webservice that also was generated with wsad 5.0.
If I replace the soap.jar on the client with the one on the server (soap.jar
from was 4 on was5) everything is ok but doing so lots of other problem
arises because was5 internally uses soap.

Can anybody help? If you want to help me and you want the code mail me.

Here is two examples of responses that goes wrong.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------
Ex1:
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------
<messageEntry xsi:type="wsi-log:httpMessageEntry" ID="23"
conversationID="12" type="request" timestamp="2004-04-30T12:18:02.260Z">
<messageContent><?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:laesOevrigaUppg
xmlns:ns1="http://www.csn.se/se.csn.arkivdb.ws.aab.WsAabOevrigaUppgLaes"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<in xmlns:ns2="http://aab.io.ws.arkivdb.csn.se/"
xsi:type="ns2:WsAabCsnNrIn">
<csnnummer xsi:type="xsd:long">10065514</csnnummer>
</in>
<user xsi:type="xsd:string">CSN7553</user>
<password xsi:type="xsd:string">XXXXXXX</password>
</ns1:laesOevrigaUppg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</messageContent>
<senderHostAndPort>localhost:9083</senderHostAndPort>
<receiverHostAndPort>localhost:8080</receiverHostAndPort>
<httpHeaders>POST /ArkivDB/servlet/rpcrouter HTTP/1.0
Host: localhost:8080
Content-Type: text/xml; charset=utf-8
Content-Length: 698
SOAPAction: ""

</httpHeaders>
</messageEntry>
<messageEntry xsi:type="wsi-log:httpMessageEntry" ID="24"
conversationID="12" type="response" timestamp="2004-04-30T12:18:05.164Z">
<messageContent><?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:laesOevrigaUppgResponse
xmlns:ns1="http://www.csn.se/se.csn.arkivdb.ws.aab.WsAabOevrigaUppgLaes"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://aab.io.ws.arkivdb.csn.se/"
xsi:type="ns2:WsAabOevrigaUppgUt">
<foeraeldraaterkrav xsi:type="xsd:string" xsi:null="true"/>
<upplaeggningsaar xsi:type="xsd:short">1988</upplaeggningsaar>
<aeldreLaan xsi:type="xsd:short" xsi:null="true"/>
<avlidendatum xsi:type="xsd:string" xsi:null="true"/>
<aakrPnrHistorik xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Array" ns3:arrayType="ns2:WsAabAkrPnrHisUt[]"
xsi:null="true"/>
<aakrHistorik xmlns:ns4="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:Array" ns4:arrayType="ns2:WsAabAkrHisUt[2]">
<item xsi:type="ns2:WsAabAkrHisUt">
<aakrAaterbet xsi:type="xsd:int">4746</aakrAaterbet>
<aakrHisNummer xsi:type="xsd:short">1</aakrHisNummer>
<aakrBidrag xsi:type="xsd:int">1996</aakrBidrag>
<stoedtermin xsi:type="xsd:short">931</stoedtermin>
<utbetalningsdatum xsi:type="xsd:string">1993-02-26</utbetalningsdatum>
<upplaeggningsdatum xsi:type="xsd:string">1993-05-19</upplaeggningsdatum>
</item>
<item xsi:type="ns2:WsAabAkrHisUt">
<aakrAaterbet xsi:type="xsd:int">2373</aakrAaterbet>
<aakrHisNummer xsi:type="xsd:short">2</aakrHisNummer>
<aakrBidrag xsi:type="xsd:int">998</aakrBidrag>
<stoedtermin xsi:type="xsd:short">931</stoedtermin>
<utbetalningsdatum xsi:type="xsd:string">1993-02-10</utbetalningsdatum>
<upplaeggningsdatum xsi:type="xsd:string">1993-05-19</upplaeggningsdatum>
</item>
</aakrHistorik>
</return>
</ns1:laesOevrigaUppgResponse>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</messageContent>
<senderHostAndPort>localhost:8080</senderHostAndPort>
<receiverHostAndPort>localhost:9083</receiverHostAndPort>
<httpHeaders>HTTP/1.1 200 OK
Server: WebSphere Application Server/4.0
Content-Type: text/xml; charset=utf-8
Set-Cookie: JSESSIONID=0000SGZ0L5DA2BF2NGUFYGGFAMY:-1;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Length: 1919
Content-Language: sv
Connection: close

</httpHeaders>
</messageEntry>

error
SOAPException: faultCode=SOAP-ENV:Client; msg=;
targetException=java.lang.NumberFormatException: ]
at org.apache.soap.rpc.Call.invoke(Call.java:258)
at
se.csn.arkivdb.ws.aab.proxy.soap.WsAabOevrigaUppgLaesProxy.laesOevrigaUppg(W
sAabOevrigaUppgLaesProxy.java:74)
....
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------
Ex2:
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------
<messageEntry xsi:type="wsi-log:httpMessageEntry" ID="21"
conversationID="11" type="request" timestamp="2004-04-30T12:17:52.726Z">
<messageContent><?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:getHaendelser xmlns:ns1="urn:se.csn.arkivdb.ws.vux.WsVuHaendelserLaes"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<in xmlns:ns2="http://vux.io.ws.arkivdb.csn.se/"
xsi:type="ns2:WsVuHaendelserIn">
<loepnr xsi:type="xsd:int">20112</loepnr>
<aktloepnr xsi:type="xsd:int">6</aktloepnr>
<csnnummer xsi:type="xsd:long">10065514</csnnummer>
</in>
<user xsi:type="xsd:string">CSN7553</user>
<password xsi:type="xsd:string">XXXXXXX</password>
</ns1:getHaendelser>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</messageContent>
<senderHostAndPort>localhost:9083</senderHostAndPort>
<receiverHostAndPort>localhost:8080</receiverHostAndPort>
<httpHeaders>POST /ArkivDB/servlet/rpcrouter HTTP/1.0
Host: localhost:8080
Content-Type: text/xml; charset=utf-8
Content-Length: 770
SOAPAction: ""

</httpHeaders>
</messageEntry>
<messageEntry xsi:type="wsi-log:httpMessageEntry" ID="22"
conversationID="11" type="response" timestamp="2004-04-30T12:17:54.178Z">
<messageContent><?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:getHaendelserResponse
xmlns:ns1="urn:se.csn.arkivdb.ws.vux.WsVuHaendelserLaes"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://vux.io.ws.arkivdb.csn.se/"
xsi:type="ns2:WsVuHaendelserUt">
<haendelser xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Array" ns3:arrayType="ns2:WsVuHaendelserHaendelseUt[4]">
<item xsi:type="ns2:WsVuHaendelserHaendelseUt">
<klartext xsi:type="xsd:string">AVSLAGSBESLUT HAR UTSNTS</klartext>
<komptext xsi:type="xsd:string" xsi:null="true"/>
<handlSignatur xsi:type="xsd:string" xsi:null="true"/>
<textkod_5 xsi:type="xsd:string" xsi:null="true"/>
<textkod_4 xsi:type="xsd:string" xsi:null="true"/>
<textkod_3 xsi:type="xsd:string" xsi:null="true"/>
<textkod_2 xsi:type="xsd:string" xsi:null="true"/>
<textkod_1 xsi:type="xsd:string" xsi:null="true"/>
<dokumentid xsi:type="xsd:decimal" xsi:null="true"/>
<haendelsedatum xsi:type="xsd:string">2001-04-05</haendelsedatum>
<klartext_5 xsi:type="xsd:string" xsi:null="true"/>
<klartext_4 xsi:type="xsd:string" xsi:null="true"/>
<klartext_3 xsi:type="xsd:string" xsi:null="true"/>
<klartext_2 xsi:type="xsd:string" xsi:null="true"/>
<klartext_1 xsi:type="xsd:string" xsi:null="true"/>
<loepnr xsi:type="xsd:int">1</loepnr>
<fritext xsi:type="xsd:string" xsi:null="true"/>
<statuskod xsi:type="xsd:short">154</statuskod>
<merinfo xsi:type="xsd:boolean">false</merinfo>
</item>
<item xsi:type="ns2:WsVuHaendelserHaendelseUt">
<klartext xsi:type="xsd:string">ANSKAN HAR BESLUTSREGISTRERATS</klartext>
<komptext xsi:type="xsd:string" xsi:null="true"/>
<handlSignatur xsi:type="xsd:string">IE</handlSignatur>
<textkod_5 xsi:type="xsd:string" xsi:null="true"/>
<textkod_4 xsi:type="xsd:string" xsi:null="true"/>
<textkod_3 xsi:type="xsd:string" xsi:null="true"/>
<textkod_2 xsi:type="xsd:string" xsi:null="true"/>
<textkod_1 xsi:type="xsd:string" xsi:null="true"/>
<dokumentid xsi:type="xsd:decimal" xsi:null="true"/>
<haendelsedatum xsi:type="xsd:string">2001-04-05</haendelsedatum>
<klartext_5 xsi:type="xsd:string" xsi:null="true"/>
<klartext_4 xsi:type="xsd:string" xsi:null="true"/>
<klartext_3 xsi:type="xsd:string" xsi:null="true"/>
<klartext_2 xsi:type="xsd:string" xsi:null="true"/>
<klartext_1 xsi:type="xsd:string" xsi:null="true"/>
<loepnr xsi:type="xsd:int">2</loepnr>
<fritext xsi:type="xsd:string" xsi:null="true"/>
<statuskod xsi:type="xsd:short">150</statuskod>
<merinfo xsi:type="xsd:boolean">true</merinfo>
</item>
<item xsi:type="ns2:WsVuHaendelserHaendelseUt">
<klartext xsi:type="xsd:string">ANSKAN HAR ANKOMSTREGISTRERATS</klartext>
<komptext xsi:type="xsd:string" xsi:null="true"/>
<handlSignatur xsi:type="xsd:string" xsi:null="true"/>
<textkod_5 xsi:type="xsd:string" xsi:null="true"/>
<textkod_4 xsi:type="xsd:string" xsi:null="true"/>
<textkod_3 xsi:type="xsd:string" xsi:null="true"/>
<textkod_2 xsi:type="xsd:string" xsi:null="true"/>
<textkod_1 xsi:type="xsd:string" xsi:null="true"/>
<dokumentid xsi:type="xsd:decimal" xsi:null="true"/>
<haendelsedatum xsi:type="xsd:string">2001-03-16</haendelsedatum>
<klartext_5 xsi:type="xsd:string" xsi:null="true"/>
<klartext_4 xsi:type="xsd:string" xsi:null="true"/>
<klartext_3 xsi:type="xsd:string" xsi:null="true"/>
<klartext_2 xsi:type="xsd:string" xsi:null="true"/>
<klartext_1 xsi:type="xsd:string" xsi:null="true"/>
<loepnr xsi:type="xsd:int">3</loepnr>
<fritext xsi:type="xsd:string" xsi:null="true"/>
<statuskod xsi:type="xsd:short">1</statuskod>
<merinfo xsi:type="xsd:boolean">false</merinfo>
</item>
<item xsi:type="ns2:WsVuHaendelserHaendelseUt">
<klartext xsi:type="xsd:string">ANS_UBS</klartext>
<komptext xsi:type="xsd:string" xsi:null="true"/>
<handlSignatur xsi:type="xsd:string" xsi:null="true"/>
<textkod_5 xsi:type="xsd:string" xsi:null="true"/>
<textkod_4 xsi:type="xsd:string" xsi:null="true"/>
<textkod_3 xsi:type="xsd:string" xsi:null="true"/>
<textkod_2 xsi:type="xsd:string" xsi:null="true"/>
<textkod_1 xsi:type="xsd:string" xsi:null="true"/>
<dokumentid xsi:type="xsd:decimal">12963660</dokumentid>
<haendelsedatum xsi:type="xsd:string">2001-03-16</haendelsedatum>
<klartext_5 xsi:type="xsd:string" xsi:null="true"/>
<klartext_4 xsi:type="xsd:string" xsi:null="true"/>
<klartext_3 xsi:type="xsd:string" xsi:null="true"/>
<klartext_2 xsi:type="xsd:string" xsi:null="true"/>
<klartext_1 xsi:type="xsd:string" xsi:null="true"/>
<loepnr xsi:type="xsd:int">4</loepnr>
<fritext xsi:type="xsd:string" xsi:null="true"/>
<statuskod xsi:type="xsd:short">502</statuskod>
<merinfo xsi:type="xsd:boolean">false</merinfo>
</item>
</haendelser>
</return>
</ns1:getHaendelserResponse>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</messageContent>
<senderHostAndPort>localhost:8080</senderHostAndPort>
<receiverHostAndPort>localhost:9083</receiverHostAndPort>
<httpHeaders>HTTP/1.1 200 OK
Server: WebSphere Application Server/4.0
Content-Type: text/xml; charset=utf-8
Set-Cookie: JSESSIONID=0000OT3Y3210CC4HWEA4ZB1RFFA:-1;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Length: 4983
Content-Language: sv
Connection: close

</httpHeaders>
</messageEntry>

Error
SOAPException: faultCode=SOAP-ENV:Client; msg=Zero length BigDecimal;
targetException=java.lang.NumberFormatException: Zero length BigDecimal]
at org.apache.soap.rpc.Call.invoke(Call.java:258)
at
se.csn.arkivdb.ws.vux.proxy.soap.WsVuHaendelserLaesProxy.getHaendelser(WsVuH
aendelserLaesProxy.java:74)
....


0 new messages