Christina Shah

Ranch Hand
+ Follow
since Oct 27, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Christina Shah

I am using Schema.
Something like :

<xs:simpleType name="a" value = any string OR another element b of type string>

Thanks
Hi,

I want to define an element of type string such that it's value can be either of :
-any string
-value of another element of type string

TIA
Chris
Hi,

I have a simple xml element which is an enum as :
<xs:simpleType name="a_type">
<xs:restriction base="xs:string">
<xs:enumeration value="XXX"/>
<xs:enumeration value="YYY"/>
</xs:restriction>
</xs:simpleType>
I want to define another simple element of type string which can take any value if the above a_type is XXX and another enum if the above a_type is YYY.

How do I do this.

TIA
Chris
This is what I had to do :

Change
<xsd:element name="a">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="str" type="xsd:string" />
<xsd:element minOccurs="0" name="num" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>

to
<xsd:complexType name="a">>
<xsd:sequence>
<xsd:element minOccurs="0" name="str" type="xsd:string" />
<xsd:element minOccurs="0" name="num" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
17 years ago
I am writing a doc literal wsdl. I have an issue with creating an array of objects. I have an element 'a' and another element 'b' which is an array of objects 'a'. WSDL2JAVA gives me

WARNING: Type {http://sample.com/}a missing!

Here are the wsdl snippets:

<xsd:element name="a">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="str" type="xsd:string" />
<xsd:element minOccurs="0" name="num" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:element name="b">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded" name="p" type="ns1:a"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

ns1 is defined in the definitions as xmlns:ns1="http://mysample.com/"

If I specify type="a", that doesn't work either and I get the same warning.

ANy help will be appreciated.

Thanks
Cris
17 years ago
Any opinions on using MTOM ?

Thanks
17 years ago
Hello,



I am writing a specification for my service . What is the best way to expose zipped text files of size around 200 MB ( not more ) through this web service ?



Thanks

Chris
17 years ago
Tomcat appends the jsessionid ( browser session I believe ) to the URL. It happens irrespective of whether there is a apache in front or not. Something like

http://<backend_tomcat:8080>/<path>;jsessionid=SHEO13NFK......
OR

https://<apache_frontend>/<path>;jsessionid=SHEO13NFK......

Thanks
17 years ago
I have a stateless application with read only data deployed on a Tomcat server behind Apache frontend.

When I hit the url, a jsessionid gets appended to the URL. I want to disable this.

Any pointers?

TIA
Chris
17 years ago
Hello.

I have a huge text file with strings with : delimited values as -

1000:2000:454758:676869:bad:bad:546474:... and so on

I want to pick up (let's say) the 8th and 12th values and replace them with a string if they are not valid numbers. What is the most efficent way? This is a large file, I want to do it most optimized.

I can use split(regex, n).

TIA
17 years ago
Thanks for your help Ulf. Things work now.

I was already using the server-config.wsdd generated by a prior axis deployment. I renamed the war to axis.war and it deployed successfully.

Chris
17 years ago
Thanks for the quick response. So is this acceptable ?

<soap:address location="http://localhost:8080/axis/services/TestSoapBinding"/>

URL of deployed webapp ( rename war to axis.war)
http://localhost:8080/axis.

And I don't understand what you mean by including the server-config.wsdd after it was deployed. Isn't it a part of the axis.war which has to be deployed ?

TIA
Chris
17 years ago
Thanks Ulf.

After expanding the war in my tomcat :
I have the jar (TestWebService.jar) in my lib.
Default AXIS server-config.wsdd and web.xml in my WEB-INF.
Do I need to do any deployment ?

How can I invoke this Service ?
The url in my wsdl is
<soap:address location="http://localhost:8080/axis/services/TestSoapBinding"/>

However the URL of my deployed webapp is ( war is called TestWebService.war)
http://localhost:8080/TestWebService.

Should these match ?

TIA
Chris
17 years ago
I have deployed a web service in AXIS under Tomcat and it works well. Now, I want to deploy the same service as a deployable application in production where I do not have AXIS. For this I created a war with lib and web.xml from AXIS. When I start Tomcat it comes up without any errors, but how do I deploy this application in Tomcat?
Do I need a server-config.wsdd?
What should go in the web.xml ( currently it is AXIS default web.xml).
Do I need to use java org.apache.axis.client.AdminClient for deployment? If yes, then how?

TIA
Chris
17 years ago
Hello,

I am trying to authenticate my client to a web service. I have a valid certificate to the service ... I want to know how do I attach the certificate to the standalone JAVA client so that the service will recognize it.

I have both the client and the service running over http.

Thanks
Chris
17 years ago