Problem with {User defined type} having array of {User defined type} with RPC-Literal

2004-12-20 Thread Adaptive Protocols
Hello,

We are trying to work with our web service, which is publishedas RPC-Literal. In all the simple cases, it is working very fine. But in some of the cases, we are facing problems; like:

a). If an operation has a parameter with a schema like 'A user defined type having a array of User defined type'; we are getting server side exception. Stating that 'invalid element with class named - item'.

For example, schema is:
Person
 name (String)
 addresses (array of Address)
hno (int) 
 street (String)

With it, we are getting exception that 'Invalid element with class Address - Item'.

We have given the mappings for person, address and even also tried with mapping for address array. But it seems that Axis Server is not picking up typeMappings for the array, in RPC literal case. With RPC-Encoded, it is working fine.
Besides it, BeanDeserializer class is picking up array's component type for finding out the deserializer for addresses.

b). If any of the operation's return type is an array of primitives, then with RPC-encoded service we need not to specify any mapping on client side. But RPC-Literal seems to be demanding for a mapping even for premitives array on client side.
Error message is something like 'No mapping found for Array_of_tns_int'.

Any reply in this regard will be a great help for us. 

Thanks, 
Mohit Gupta.
		Do you Yahoo!? 
Meet the all-new My Yahoo! – Try it today! 

Re: Problem with {User defined type} having array of any type with Wrapped-Literal

2004-12-20 Thread Adaptive Protocols
Thanks Anne. I am trying with Wrapped Document/Literal.

But here also, I am facing the same problem. I even tried with a user define type having an array of primitives, schema is like

Company (Company Java Object - UDT)
 employeeCodes ( int array )

I passed this object to server using operation testCompany (Company).

The soap message generated is fine as per my knowledge. It is something like:
soapenv: Body
 testCompany xmlns="abc"
Company
 employeeCodes
 items..

 /employeeCodes
/Company
 /testCompany
soapenv: Body 
But on server, it is showing problem while finding deserializer for the array type of attribute for company object. Exception Faced is: 
SAXException: SimpleDeserializer encounterd a child element, which is NOT expected, in something it was trying to deserialize.

It is again the same problem, i.e. BeanDeserializer is getting simple Deserializer for array type of property. 

Help is required urgently. 

Thanks,
MohitAnne Thomas Manes [EMAIL PROTECTED] wrote:
Note that Axis doesn't really support RPC/Literal. It kinda supportsit from a client perspective, but there's no Axis WSDD "style"attribute value that corresponds to RPC/Literal.I suggest you use Wrapped Document/Literal instead.(Note that .NET does not support RPC/Literal, either.)AnneOn Mon, 20 Dec 2004 03:48:27 -0800 (PST), Adaptive Protocols<[EMAIL PROTECTED]>wrote: Hello,  We are trying to work with our web service, which is published as RPC-Literal. In all the simple cases, it is working very fine. But in some of the cases, we are facing problems; like:  a). If an operation has a parameter with a schema like 'A user defined type having a array of User defined type'; we are getting server side exception. Stating that 'invalid element with class named -
 item'.  For example, schema is: Person name (String) addresses (array of Address) hno (int)  street (String)  With it, we are getting exception that 'Invalid element with class Address - Item'.  We have given the mappings for person, address and even also tried with mapping for address array. But it seems that Axis Server is not picking up typeMappings for the array, in RPC literal case. With RPC-Encoded, it is working fine. Besides it, BeanDeserializer class is picking up array's component type for finding out the deserializer for addresses.  b). If any of the operation's return type is an array of primitives, then with RPC-encoded service we need not to specify any mapping on client side. But RPC-Literal seems to be demanding for a mapping even for premitives array on client side. Error message is
 something like 'No mapping found for Array_of_tns_int'.  Any reply in this regard will be a great help for us.   Thanks,  Mohit Gupta.   Do you Yahoo!? Meet the all-new My Yahoo! – Try it today!  
		Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more.

XML Input to Axis Client Side API for web service invocation

2004-12-20 Thread Adaptive Protocols
Hello Everybody,

I have an issue with Axis Client side API. The requirement is that:

I want to invoke web services using Axis Client. Now here I don't have parameters as java objects rather I do have XML structure ( as required for soap message ) for these objects. So is there any way to configure Axis Client to accept this XML as input param and set it directly to SOAP message. Otherwise it generally tries for RPC parameters and so invoke serialization for these parameters. 

Or do we need to write customize serializer for this purpose, where we wouldreturn this XML structure in place of general serialization process.

Thanks,
Mohit
		Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard.

Re: Custome Deserializer

2004-12-21 Thread Adaptive Protocols
Hi Renuka,

I think, you need to register a type mapping on server side wsdd for this. i.e. define a type mapping in server-config.wsdd with xml type as xsd:int, java type as int class and you custom deserializer factory, which will return custom deserializer.
This should solve the purpose.

Thanks,
Mohit"Chadha, Renuka" [EMAIL PROTECTED] wrote:
How can I register Custom Deserializer for xsd:int using typemapping 
		Do you Yahoo!? 
Jazz up your holiday email with celebrity designs. Learn more.

RE: XML Input to Axis Client Side API for web service invocation

2004-12-21 Thread Adaptive Protocols
Hi Jai, Hi Christian

Thanks for the help.

You are right that the requirements are very likely by fulfilled by using message style communication. But we have a different scenario, that is

on server we may have any kind of web service, that can be rpc-literal-encoded or wrapped-literal etc; but onclient, we have the xmlof the attributes for operation to be invoked. Assume we can customize this xml based on service type, i.e if service is supporting encoded format, we may insert type information in this xml otherwise we can supply the raw xml schema compliant structure.

Now we need that according to requirement, we can ask to Axis Client to accept these xml structures for attributes and if the service is of message style, pass it as it is otherwise just insert the given xml in place of parameters serialized structure.

This is the specific scenario that we want to enable on client side. I hope above para would communicate my need. There are many hooks for doing this work, but there may be any standard way for doing this work which I want to explore.

Any kind of help would be great for us.

Thanks,
Mohit
"THOMAS, JAI [AG-Contractor/1000]" [EMAIL PROTECTED] wrote:


Mohit,
Can you provide specifics of the service your client is consuming. 
Looks like what you need is amessage style method. If your server supports it you should be able to supply an xml doc.

Jai

-Original Message-From: Adaptive Protocols [mailto:[EMAIL PROTECTED]Sent: Monday, December 20, 2004 11:19 PMTo: AxisUser MailingListSubject: XML Input to Axis Client Side API for web service invocation
Hello Everybody,

I have an issue with Axis Client side API. The requirement is that:

I want to invoke web services using Axis Client. Now here I don't have parameters as java objects rather I do have XML structure ( as required for soap message ) for these objects. So is there any way to configure Axis Client to accept this XML as input param and set it directly to SOAP message. Otherwise it generally tries for RPC parameters and so invoke serialization for these parameters. 

Or do we need to write customize serializer for this purpose, where we wouldreturn this XML structure in place of general serialization process.

Thanks,
Mohit


Do you Yahoo!?Read only the mail you want - Yahoo! Mail SpamGuard.
		Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone.

Re: missing appenders for log4j

2004-12-21 Thread Adaptive Protocols
Hi Russell,

Check the log4j. properties file inaxis classpath. It should be there with proper settings.

Thanks,
MohitRussell Lane [EMAIL PROTECTED] wrote:
I'm running Java Axis v.1.2 RC 2 on Tomcat v.4.1.31. I followed the install instructions correctly (I think), and am now deploying some trivial web services to find my way around.I've written a small handful of Java clients that consume the web services using the Service and Call classes. Things in general are fine, however I consistenly get the following warning message:log4j:WARN No appenders could be found for logger (org.apache.axis.i28n.ProjectResourceBundle).log4j:WARN Please initialize the log4j system properly.I have log4j-1.2.8.jar installed in .\axis\WIN-INF\lib, and also have it in my classpath. This doesn't prevent stuff from working, but I've like to clean up the configuration.Does anyone know what is causing this error, or have suggestions on where I could look for more information?Thanks
 -
		Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.

Re: Problem with {User defined type} having array of any type with Wrapped-Literal

2004-12-21 Thread Adaptive Protocols
Hi All,

I am waiting for a kind response for this problem. I am just stuck with this one. Any clue would be a great help for me.

Thanks,
Mohit

Adaptive Protocols [EMAIL PROTECTED] wrote:

Thanks Anne. I am trying with Wrapped Document/Literal.

But here also, I am facing the same problem. I even tried with a user define type having an array of primitives, schema is like

Company (Company Java Object - UDT)
 employeeCodes ( int array )

I passed this object to server using operation testCompany (Company).

The soap message generated is fine as per my knowledge. It is something like:
soapenv: Body
 testCompany xmlns="abc"
Company
 employeeCodes
 items..

 /employeeCodes
/Company
 /testCompany
soapenv: Body 
But on server, it is showing problem while finding deserializer for the array type of attribute for company object. Exception Faced is: 
SAXException: SimpleDeserializer encounterd a child element, which is NOT expected, in something it was trying to deserialize.

It is again the same problem, i.e. BeanDeserializer is getting simple Deserializer for array type of property. 

Help is required urgently. 

Thanks,
MohitAnne Thomas Manes [EMAIL PROTECTED] wrote:
Note that Axis doesn't really support RPC/Literal. It kinda supportsit from a client perspective, but there's no Axis WSDD "style"attribute value that corresponds to RPC/Literal.I suggest you use Wrapped Document/Literal instead.(Note that .NET does not support RPC/Literal, either.)AnneOn Mon, 20 Dec 2004 03:48:27 -0800 (PST), Adaptive Protocols<[EMAIL PROTECTED]>wrote: Hello,  We are trying to work with our web service, which is published as RPC-Literal. In all the simple cases, it is working very fine. But in some of the cases, we are facing problems; like:  a). If an operation has a parameter with a schema like 'A user defined type having a array of User defined type'; we are getting server side exception. Stating that 'invalid element with class named -
 item'.  For example, schema is: Person name (String) addresses (array of Address) hno (int)  street (String)  With it, we are getting exception that 'Invalid element with class Address - Item'.  We have given the mappings for person, address and even also tried with mapping for address array. But it seems that Axis Server is not picking up typeMappings for the array, in RPC literal case. With RPC-Encoded, it is working fine. Besides it, BeanDeserializer class is picking up array's component type for finding out the deserializer for addresses.  b). If any of the operation's return type is an array of primitives, then with RPC-encoded service we need not to specify any mapping on client side. But RPC-Literal seems to be demanding for a mapping even for premitives array on client side. Error message is
 something like 'No mapping found for Array_of_tns_int'.  Any reply in this regard will be a great help for us.   Thanks,  Mohit Gupta.   Do you Yahoo!? Meet the all-new My Yahoo! – Try it today!  


Do you Yahoo!?Dress up your holiday email, Hollywood style. Learn more.
		Do you Yahoo!? 
Meet the all-new My Yahoo! – Try it today! 

Re: Axis 1.2 - issues. Need help

2004-12-27 Thread Adaptive Protocols
This is just due to classes mismatch. You have both new and old axis library in your classpath. Better to clean classpath completely and populate it with jars again. 

This could certainly make axis happy.

Thanks
MohitDeivanai [EMAIL PROTECTED] wrote:





Hi,

I am using axis version 1.2 and Tomcat 4.1 with Jdk 1.4.2_01

I have used axis to generate the proxies for MS-SQL reporting web service and tried accessingthe serviceusinga client. I get the following error:-

javax.servlet.ServletException: org.apache.axis.description.TypeDesc.(Ljava/lang/Class;Z)Vat org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)at org.apache.jsp.calcResult_jsp._jspService(calcResult_jsp.java:138)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Your time and help is appreciated.


Thanks and Regards,
---Deivanai.PRMerIndus Consulting Pvt. Ltd.Executive Chambers18/5 Cunningham RoadBangalore - 560052
---We can make a difference if we try - www.dreamadream.org
		Do you Yahoo!? 
Meet the all-new My Yahoo! – Try it today!