Hello Dies,
          I didn't modify any of the classes generated by WSDL2Java, but
I don't see any helper methods in the generated client stubs, should I
be seeing these ??

Regards,
William 


-----Original Message-----
From: Dies Koper [mailto:[EMAIL PROTECTED] 
Sent: 14 March 2006 14:02
To: [email protected]
Subject: Re: java.lang.IllegalArgumentException

Hello William,

We'd need to see the WSDL to see if the SOAP message is right.
Unfortunately the SOAP message is rather long and complicated. You might
not get any replies.

As you seem to use complex structures (array of complex types?) I
imagine the Axis engine relies on the Helper classes (or helper code in
the generated Javabeans) on the client side. Just checking, but you did
not happen to have removed these classes/methods?

Regards,
Dies


William Ward wrote:
> Hello Dies,
>           thank you for the reply, I used tcpmon to capture the SOAP 
> message, I believe the problem is at the receiving end as I get the 
> response back from the Web Service no problem, it looks like it has a 
> problem de-serializing the response.
> 
> The odd thing is if I call the same Web Serice using just a test Java 
> application, I don't see any exception on the Axis side It seems to be

> just when I use JSP, Tomcat and Axis, I have tried just creating a 
> simple JSP page that has the same code as the test Java Application, 
> but I always get the Axis exception when using JSP & Tomcat, even 
> though it is the same code & libraries for both applications
> 
> below is the SOAP request / response that I see using tcpmon :
> 
> Regards,
> William
> 
> 
> ==============
> Listen Port: 8081
> Target Host: 47.166.106.127
> Target Port: 80
> 
> 
> ==== Request ====
> POST /ccmmwebservices/CICustomerWs.asmx HTTP/1.0
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related,
> text/*
> User-Agent: Axis/1.2
> Host: 47.166.106.127:8081
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction:
> "http://webservices.ci.ccmm.applications.nortel.com/ReadCustomerContac
> tH
> istory"
> Content-Length: 423
> 
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>       <soapenv:Body>
>          <ReadCustomerContactHistory
> xmlns="http://webservices.ci.ccmm.applications.nortel.com";>
>             <id>35</id>
>             <sessionKey>2qrc3E7a00</sessionKey>
>          </ReadCustomerContactHistory>
>       </soapenv:Body>
>    </soapenv:Envelope>
>    
>    
>    
>    
> ==== Response ====
> HTTP/1.1 200 OK
> Connection: close
> Date: Tue, 14 Mar 2006 13:46:05 GMT
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> X-AspNet-Version: 1.1.4322
> Cache-Control: private, max-age=0
> Content-Type: text/xml; charset=utf-8
> Content-Length: 4823
> 
> <?xml version="1.0" encoding="utf-8"?>
>    <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>       <soap:Body>
>          <ReadCustomerContactHistoryResponse
> xmlns="http://webservices.ci.ccmm.applications.nortel.com";>
>             <ReadCustomerContactHistoryResult>
>                <customerID
>
xmlns="http://datatypes.ci.ccmm.applications.nortel.com";>35</customerID>
>                <contactsList
> xmlns="http://datatypes.ci.ccmm.applications.nortel.com";>
>                   <CIContactReadType>
>                      <id>80</id>
>                      <customerID>35</customerID>
>                      <originalSubject>sfs</originalSubject>
>                      <source>Web</source>
>                      <status>New</status>
>                      <skillset>
>                         <id>10</id>
>                         <name>OB_Test1</name>
>                         <markAsDeleted>false</markAsDeleted>
>                         <status>Unspecified</status>
>                      </skillset>
>                      <priority>Unspecified</priority>
>                      <timezone>0</timezone>
>                      <arrivalTime>
>                         <time>2006-03-14T10:39:28.0000000-00:00</time>
>                      </arrivalTime>
>                      <openDuration>0</openDuration>
>                      <contactType>ScheduledCallback</contactType>
>                      <actionList>
>                         <CIActionReadType>
>                            <id>203</id>
>                            <contactID>80</contactID>
>                            <subject>sfs</subject>
>                            <text>dfsdfdf</text>
>                            <callbackTime>
>  
> <time>2006-03-14T10:39:28.4678080-00:00</time>
>                            </callbackTime>
>
<callbackStatus>Unspecified</callbackStatus>
>                            <creationTime>
>  
> <time>2006-03-14T10:39:28.0000000-00:00</time>
>                            </creationTime>
>  
> <source>Callback_Request_from_Customer</source>
>                            <timeAllocated>0</timeAllocated>
>                            <outboundTalkTime>0</outboundTalkTime>
>                            <outboundDispositionCode />
>                            <actionType>ScheduledCallback</actionType>
>                         </CIActionReadType>
>                      </actionList>
>                   </CIContactReadType>
>                   <CIContactReadType>
>                      <id>81</id>
>                      <customerID>35</customerID>
>                      <originalSubject>sfsdf</originalSubject>
>                      <source>Web</source>
>                      <status>New</status>
>                      <skillset>
>                         <id>2</id>
>                         <name>OB_Default_Skillset</name>
>                         <markAsDeleted>false</markAsDeleted>
>                         <status>Unspecified</status>
>                         <webDescription />
>                      </skillset>
>                      <priority>Unspecified</priority>
>                      <timezone>0</timezone>
>                      <arrivalTime>
>                         <time>2006-03-14T10:39:34.0000000-00:00</time>
>                      </arrivalTime>
>                      <openDuration>0</openDuration>
>                      <contactType>ScheduledCallback</contactType>
>                      <actionList>
>                         <CIActionReadType>
>                            <id>204</id>
>                            <contactID>81</contactID>
>                            <subject>sfsdf</subject>
>                            <text>sdfdsf</text>
>                            <callbackTime>
>  
> <time>2006-03-14T10:39:34.9053080-00:00</time>
>                            </callbackTime>
>
<callbackStatus>Unspecified</callbackStatus>
>                            <creationTime>
>  
> <time>2006-03-14T10:39:34.0000000-00:00</time>
>                            </creationTime>
>  
> <source>Callback_Request_from_Customer</source>
>                            <timeAllocated>0</timeAllocated>
>                            <outboundTalkTime>0</outboundTalkTime>
>                            <outboundDispositionCode />
>                            <actionType>ScheduledCallback</actionType>
>                         </CIActionReadType>
>                      </actionList>
>                   </CIContactReadType>
>                   <CIContactReadType>
>                      <id>82</id>
>                      <customerID>35</customerID>
>                      <originalSubject>sfs</originalSubject>
>                      <source>Web</source>
>                      <status>New</status>
>                      <skillset>
>                         <id>10</id>
>                         <name>OB_Test1</name>
>                         <markAsDeleted>false</markAsDeleted>
>                         <status>Unspecified</status>
>                      </skillset>
>                      <priority>Unspecified</priority>
>                      <timezone>0</timezone>
>                      <arrivalTime>
>                         <time>2006-03-14T10:39:41.0000000-00:00</time>
>                      </arrivalTime>
>                      <openDuration>0</openDuration>
>                      <contactType>ScheduledCallback</contactType>
>                      <actionList>
>                         <CIActionReadType>
>                            <id>205</id>
>                            <contactID>82</contactID>
>                            <subject>sfs</subject>
>                            <text>fdsdfdf</text>
>                            <callbackTime>
>  
> <time>2006-03-14T10:39:41.4678080-00:00</time>
>                            </callbackTime>
>
<callbackStatus>Unspecified</callbackStatus>
>                            <creationTime>
>  
> <time>2006-03-14T10:39:41.0000000-00:00</time>
>                            </creationTime>
>  
> <source>Callback_Request_from_Customer</source>
>                            <timeAllocated>0</timeAllocated>
>                            <outboundTalkTime>0</outboundTalkTime>
>                            <outboundDispositionCode />
>                            <actionType>ScheduledCallback</actionType>
>                         </CIActionReadType>
>                      </actionList>
>                   </CIContactReadType>
>                   <CIContactReadType>
>                      <id>83</id>
>                      <customerID>35</customerID>
>                      <originalSubject>Password 
> Reminder</originalSubject>
>                      <source>EMail</source>
>                      <status>Closed</status>
>                      <skillset>
>                         <id>4</id>
>                         <name>EM_Default_Skillset</name>
>                         <markAsDeleted>false</markAsDeleted>
>                         <status>Unspecified</status>
>                         <webDescription />
>                      </skillset>
>                      <priority>Priority_6_Lowest</priority>
>                      <timezone>0</timezone>
>                      <arrivalTime>
>                         <time>2006-03-14T11:07:24.0000000-00:00</time>
>                      </arrivalTime>
>                      <closedTime>
>                         <time>2006-03-14T11:07:24.0000000-00:00</time>
>                      </closedTime>
>                      <openTime>
>                         <time>2006-03-14T11:07:24.0000000-00:00</time>
>                      </openTime>
>                      <openDuration>0</openDuration>
>                      <MailTo>[EMAIL PROTECTED]</MailTo>
>                      <MailFrom>[EMAIL PROTECTED]</MailFrom>
>                      <contactType>Email</contactType>
>                      <actionList>
>                         <CIActionReadType>
>                            <id>206</id>
>                            <contactID>83</contactID>
>                            <subject>Password Reminder</subject>
>                            <callbackStatus>EMail_Sent</callbackStatus>
>                            <creationTime>
>  
> <time>2006-03-14T11:07:24.0000000-00:00</time>
>                            </creationTime>
>  
> <source>Password_Reminder_to_Customer</source>
>                            <mailTo>[EMAIL PROTECTED]</mailTo>
>                            <timeAllocated>0</timeAllocated>
>                            <outboundTalkTime>0</outboundTalkTime>
>                            <outboundDispositionCode />
>                            <actionType>Email</actionType>
>                         </CIActionReadType>
>                      </actionList>
>                   </CIContactReadType>
>                </contactsList>
>             </ReadCustomerContactHistoryResult>
>          </ReadCustomerContactHistoryResponse>
>       </soap:Body>
>    </soap:Envelope>
> ==============
> 
> 
>  
> 
> -----Original Message-----
> From: Dies Koper [mailto:[EMAIL PROTECTED]
> Sent: 14 March 2006 13:00
> To: [email protected]
> Subject: Re: java.lang.IllegalArgumentException
> 
> Hello William,
> 
> Looks like a tough one.. For starters, use tcpmon to capture the SOAP 
> message. Checking the SOAP message usually helps to determine whether 
> the problem is on the sending or receiving end.
> 
> Regards,
> Dies
> 
> 
> William Ward wrote:
>> Hi,
>>   I get the following exception when calling a web service using 
>> Axis,
> 
>> I am calling the Web Service from a JSP page on Tomcat
>>
>> Any ideas how I can find out what is causing this problem
>>
>> {http://xml.apache.org/axis/}stackTrace:java.lang.IllegalArgumentExce
>> p
>> ti
>> on
>>      at
>> org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDe
>> s
>> er
>> ializer.java:176)
>>      at
>>
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.
>> ja
>> va:502)
>>      at
>> org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
>> a
>> ti
>> onContext.java:1087)
>>      at
>>
>
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
>> 171)
>>      at
>> org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
>> t
>> .j
>> ava:1140)
>>      at
>> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>>      at
>> org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>>      at org.apache.axis.client.Call.invoke(Call.java:2448)
>>      at org.apache.axis.client.Call.invoke(Call.java:2347)
>>      at org.apache.axis.client.Call.invoke(Call.java:1804)


Reply via email to