Viru Sagar

Greenhorn
+ Follow
since Oct 29, 2007
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 Viru Sagar

"soapenv:server" always reflects that the receving end could not process the request because of some reason, may be it needed some response from a third component which it didn't get timely.

Probably webservice IMPL class is accesing dome bean, which is not available.

Hope this helps.
12 years ago
When I use
"<wsdl art name="testPart" element="tns:ConcatS"></wsdl art>" It works fine. But based upon my study from an article :
If RPC Style messaging is used then part element must have "type" attribute instead of element.

With the following I can not generate the Java code.
"<wsdl art name="testPart" type="tns:ConcatS"></wsdl art>"
12 years ago
Hi All,

I ahve the following WSDL file and it has a schema defined with name "ConcatS", which is further referenced as a part of a message.

But when I try to generate the sourcecode, i get following error

java.io.IOException: Type {http://www.example.org/WSDLFile/}ConcatS is referenced but not defined.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/WSDLFile/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WSDLFile" targetNamespace="http://www.example.org/WSDLFile/" xmlns:p="http://schemas.xmlsoap.org/wsdl/http/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.example.org/WSDLFile/">
<xsd:element name="ConcatS">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="String4" type="xsd:string"></xsd:element>
<xsd:element name="String2" type="xsd:string"></xsd:element>
<xsd:element name="String3" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="NewOperationRequest">
<wsdl:part name="NewOperationRequest" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="NewOperationResponse">
<wsdl:part name="NewOperationResponse" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="ConcatRequest">
<wsdl:part name="testPart" type="tns:ConcatS"></wsdl:part>
</wsdl:message>
<wsdl:message name="ConcatResponse">
<wsdl:part name="ConcatResponse" type="xsd:string"></wsdl:part>
</wsdl:message>
<wsdl:portType name="WSDLFile">
<wsdl:operation name="NewOperation">
<wsdl:input message="tns:NewOperationRequest"/>
<wsdl:output message="tns:NewOperationResponse"/>
</wsdl:operation>
<wsdl:operation name="Concat">
<wsdl:input message="tns:ConcatRequest"></wsdl:input>
<wsdl:output message="tns:ConcatResponse"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WSDLFileSOAP" type="tns:WSDLFile">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="NewOperation">
<soap:operation soapAction="http://www.example.org/WSDLFile/NewOperation"/>
<wsdl:input>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:output>
</wsdl:operation>

<wsdl:operation name="Concat">
<soap:operation soapAction="http://www.example.org/WSDLFile/Concat"/>
<wsdl:input>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="http://www.example.org/WSDLFile/" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WSDLFile">
<wsdl:port binding="tns:WSDLFileSOAP" name="WSDLFileSOAP">
<soap:address location="http://www.example.org/"/>
</wsdl:port>
<p:address location="http://127.0.0.1:8080/SimpleWebService"></p:address></wsdl:service>
</wsdl:definitions>
12 years ago
Hi,

What would be the best Jax-RPC runtime environment for SCJWSD prepration.


Viru
12 years ago
Hi,

I am using Apache Axis 1.4 and trying to build the OOTB sample applications.
Ant throws me a compile time error that

C:\axis-1_4\xmls\taskdefs_post_compile.xml:2: taskdef A class needed by class org.apache.axis.tools.ant.foreach.ForeachTask ca
nnot be found: org/apache/tools/ant/Task


"org/apache/tools/ant/Task" is available in ant.jar.

It seemed to me a classpath problem but I printed classpath on console and found that all the ANT jar files were there.

I explicitely provided these jar files in build script but somehow still "org.apache.axis.tools.ant.foreach" AXIS'S subclass of "org/apache/tools/ant/Task" can not see my ant.jar.

Any clue/Idea/Resolution is much appreciated.
13 years ago
Thanks for your reply.
One more question.

How does runtime environment validate the wsdl xml file?
13 years ago
Hi,

Could anyone tell me how a WS run time environment (Axis,Systinet etc.) validate a WSDL file against the standard WSDL schema.
I think they do not bundle WSDL schema file, rather refer directly to the weblink.

I am asking this because I was reading "http://java.boot.by/wsd-guide/ch01.html#c1s1" study guide it mentions the following...

"If a document-literal binding in a DESCRIPTION does not specify the parts attribute on a soapbind:body element, the corresponding abstract wsdl:message MUST define zero or one wsdl arts."

Latest WSDL schema does not mention about parts atribute in "binding" element.Please let me know if this is related to XML schemas concept which i am not getting.
13 years ago