RE: java.lang.IllegalArgumentException

2006-03-15 Thread William Ward
Hello Dies,
  I see the helper classes you mentioned in my generated
Javabean classes, so they should be included,
The Web Service is written in .NET ( C# ), however I am calling it from
JSP pages, so the JSP pages are in the Tomcat container on their own

Thanks,
William

 

-Original Message-
From: Dies Koper [mailto:[EMAIL PROTECTED] 
Sent: 15 March 2006 00:29
To: axis-user@ws.apache.org
Subject: Re: java.lang.IllegalArgumentException

Hello William,

I do not know the conditions for them to be generated, but generated
Javabean classes often get helper methods such as:
- getTypeDesc
- getSerializer
- getDeserializer

WSDL2Java has an option to have these methods not inserted in the
Javabean classes, but in separate files.

Either way, I think they are required in certain circumstances to
serialize/deserialize SOAP messages correctly.

If you did not modify (overwrite them with your original, etc.) or
forget to include them, then I suppose it's okay.

When happens if you put the JSP in a different Tomcat instance
(different process) from the web service running in Axis?

Regards,
Dies

William Ward wrote:
> 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: axis-user@ws.apache.org
> 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




RE: java.lang.IllegalArgumentException

2006-03-14 Thread William Ward
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: axis-user@ws.apache.org
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
> 
> 
> 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";>
>   
>   xmlns="http://webservices.ci.ccmm.applications.nortel.com";>
> 35
> 2qrc3E7a00
>  
>   
>
>
>
>
>
>  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
> 
> 
>http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>   
>   xmlns="http://webservices.ci.ccmm.applications.nortel.com";>
> 
>
xmlns="http://datatypes.ci.ccmm.applications.nortel.com";>35
> xmlns="http://datatypes.ci.ccmm.applications.nortel.com";>
>   
>  80
>  35
>  sfs
>  Web
>  New
>  
> 10
> OB_Test1
> false
> Unspecified
>  
>  Unspecified
>  0
>  
> 2006-03-14T10:39:28.000-00:00
>  
>  0
>  ScheduledCallback
>  
> 
>203
>80
>sfs
>dfsdfdf
>
>  
> 2006-03-14T10:39:28.4678080-00:00
>
>
Unspecified
>
>  
> 2006-03-14T10:39:28.000-00:00
>
>  
> Callback_Request_from_Customer
>0
>0
>
>ScheduledCallback
> 
>  
>   
>   
>  81
> 

RE: java.lang.IllegalArgumentException

2006-03-14 Thread William Ward
2006-03-14T10:39:41.000-00:00
 
 0
 ScheduledCallback
 

   205
   82
   sfs
   fdsdfdf
   
 
2006-03-14T10:39:41.4678080-00:00
   
   Unspecified
   
 
2006-03-14T10:39:41.000-00:00
   
 
Callback_Request_from_Customer
   0
   0
   
   ScheduledCallback

 
  
  
 83
 35
 Password
Reminder
 EMail
 Closed
 
4
EM_Default_Skillset
false
Unspecified

 
 Priority_6_Lowest
 0
 
2006-03-14T11:07:24.000-00:00
 
 
2006-03-14T11:07:24.000-00:00
 
 
2006-03-14T11:07:24.000-00:00
 
 0
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 Email
 

   206
   83
   Password Reminder
   EMail_Sent
   
 
2006-03-14T11:07:24.000-00:00
   
 
Password_Reminder_to_Customer
   [EMAIL PROTECTED]
   0
   0
   
   Email

 
  
   

 
  
   
==


 

-Original Message-
From: Dies Koper [mailto:[EMAIL PROTECTED] 
Sent: 14 March 2006 13:00
To: axis-user@ws.apache.org
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.IllegalArgumentExcep
> ti
> on
>   at
> org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDes
> er
> ializer.java:176)
>   at
> org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.
> ja
> va:502)
>   at
> org.apache.axis.encoding.DeserializationContext.endElement(Deserializa
> ti
> onContext.java:1087)
>   at
>
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
> 171)
>   at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement
> .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)





java.lang.IllegalArgumentException

2006-03-14 Thread William Ward

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.IllegalArgumentExcepti
on
at
org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeser
ializer.java:176)
at
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.ja
va:502)
at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1087)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
171)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.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)



Thanks,
William