Amutha Ramesh

Greenhorn
+ Follow
since Oct 04, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amutha Ramesh

Hi Dittmer,

Thankyou for your reply.

Let me exaplain my issue clearly.

I am facing one issue with Webservices in Axis 1.3

My wsdl definition contains the following segment

<!-- Our simple ID Type -->
<simpleType name="ID">
<restriction base="xsd:string">
<length value="32"/>
<pattern value='[a-zA-Z0-9]{32}'/>
</restriction>
</simpleType>

When generating the Java classes using WSDL2Java(reverse process) the files get generated but there is no class found for the type ID.


When I deploy the service, it gets successfully deployed.

Using WSDL2Java I am trying to generate the client for the deployed wsdl. When I invoke the service, I get NullPointerException. as my wsdl contains a simple restriction type ID. My query and retrieve services throws an exception. When I searched online I found a link explaining the below points

* Axis no longer generates a wrapper class for simple type restrictions, this means that the ID class disappears, ID is now treated as a plain jane String

* query & retrieve calls that have null field values, will now correctly populate a null value in the Any array, however if you include Id in your field list, this will not appear in the Any collection (this is a bug in 1.2 that looks like it'll be fixed in the upcoming Axis 1.2.1 release).

URL - http://blog.sforce.com/sforce/2005/06/migrating_from_.html


Thanks

Amutha
11 years ago
Hi all,

I am working with Webservices using Apache Axis 1. 3 for deployment
I am facing an issue with Axis 1.3
I have got the following service

* getUserInfo
* create
* update
* query
* retrieve

I have deployed the services successfully. When I invoke the services from my java client it works fine.

From the deployed wsdl I have generated java classes using WSDL2Java and tested the service with the same java client.
Now query and retrieve services throws an exception.

I have noticed that in my wsdl I have got ID to be a simple restriction type and found online that

* Axis no longer generates a wrapper class for simple type restrictions, this means that the ID class disappears, ID is now treated as a plain jane String

* query & retrieve calls that have null field values, will now correctly populate a null value in the Any array, however if you include Id in your field list, this will not appear in the Any collection (this is a bug in 1.2 that looks like it'll be fixed in the upcoming Axis 1.2.1 release).

Is the above statements true?

Is this a bug with Axis 1.3?

Any help would be greatly appreciated.

Thanks
Amutha
11 years ago
Thankyou Rajneesh and Ashkrit for your useful information regarding security with Axis.

So

For Authentication - enabling SSL for Axis servlet
For Authorization - To use Handlers.

Since I am new to Axis I wish to know what would be the differnce between these two.

For Authorization do we need to use the classes from the below package

org.apache.axis.handlers

Could you please explain me little more.


With Regards,
Amutha
11 years ago
Thankyou Rajneesh.

If I am going to pass the Soap request like the one below

<sObjects><![CDATA[<sampletag>testvalue</sampletag>]]></sObjects>

then my request format would change right.

But my request format should be similar to something like

<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>
<test xmlns=\"urn:WithoutTag\">
<sObjects>
<Accountname>testname</Accountname>
</sObjects>
</test>
</soapenv:Body>
</soapenv:Envelope>

My client invoking the webservice is thru javascript.
Is there any way to proceed with this aspect? I couldn't figure out the issue happening here.

With Regards,
Amutha
11 years ago
Hi Ajay,


Currently I am using Axis 1.3 for Webservices.
I too need information about Webservice security with Apache Axis.
Help me if you have solved the ways of implementing security.

Thanks,
Amutha
11 years ago
Hi,

Currently I am working with Axis 1.3 to deploy webservices.My webservice has got 3 methods
* login
* create
* query
I am facing problem when the Soap request format is similar to the one below.

<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><test xmlns="urn:WithoutTag"><sObjects><sampletag>testvalue</sampletag></sObjects></test></soapenv:Body></soapenv:Envelope>

In the above Soaprequest the contents under <sObjects> tag should be treated as a string. Is there any way to solve this problem?

Any help would be greatly appreciated
11 years ago