• Post Reply Bookmark Topic Watch Topic
  • New Topic

i'm trying to create a webservice using netbeans 6.8 for weblogic 10.3.2 and J2EE 5

 
Lavanya Halliwell
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my questions is about the wsdl file, because when I use my wsdl file to create an ejb jar project in netbeans 1 of the 3 wsdl operations gets ignored....

[code]

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:com:test:service"
xmlns:ns="urn:com:test"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
name="test"
targetNamespace="urn:com:test:service">
<wsdl:types>
<xsd:schema targetNamespace="urn:com:test:service">
<xsd:import namespace="urn:com:test" schemaLocation="test.xsd"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="t1Request">
<wsdl:part name="inputPart" element="ns:testInput"/>
<wsdl:part name="attachment" type="xsd:base64Binary"/>
</wsdl:message>
<wsdl:message name="t2Request">
<wsdl:part name="inputPart" element="ns:test2Input"/>
</wsdl:message>
<wsdl:message name="t1Response">
<wsdl:part name="outputPart" element="ns:testOutput"/>
</wsdl:message>
<wsdl:message name="t2Response">
<wsdl:part name="outputPart" element="ns:test2Output"/>
</wsdl:message>
<wsdl:message name="testFault">
<wsdl:part name="faultPart" element="ns:testFault"/>
</wsdl:message>
<wsdl:portType name="testPortType">
<wsdl:operation name="t1">
<wsdl:input name="inputt1Request" message="tns:t1Request"/>
<wsdl:output name="outputt1Response" message="tns:t1Response"/>
<wsdl:fault name="faulttestResponse" message="tns:testFault"/>
</wsdl:operation>
<wsdl:operation name="t2">
<wsdl:input name="inputt2Request" message="tns:t2Request"/>
<wsdl:output name="outputt2FilePathResponse" message="tns:t2Response"/>
<wsdl:fault name="faulttestResponse" message="tns:testFault"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="testBinding" type="tns:vtestPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="t1">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="inputt1Request">
<mime:multipartRelated>
<mime:part name="bodyPart">
<soap:body use="literal"/>
</mime:part>
<mime:part name="attachmentPart">
<mime:content part="attachment" type="*/*"/>
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output name="outputt1Response">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="faulttestResponse">
<soap:fault use="literal" name="faulttestResponse"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="t2">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="inputt2Request">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="outputt2Response">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="faulttestResponse">
<soap:fault use="literal" name="faulttestResponse"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="test">
<wsdl:port name="testPortTypePort" binding="tns:testBinding">
<soap:address location="PUT ACTUAL ADDRESS HERE"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


[/code]


netbeans has this warning:

[WARNING] name attribute on wsdl:part in Operation "t1" is ignored. Its not allowed as per WS-I AP 1.0.
line 49 of file:/C:/NetBeansProjects/sample_projects/VS/src/conf/xml-resources/web-services/VS/wsdl/test.wsdl

[WARNING] name attribute on wsdl:part in Operation "t1" is ignored. Its not allowed as per WS-I AP 1.0.
line 52 of file:/C:/NetBeansProjects/sample_projects/VS/src/conf/xml-resources/web-services/VS/wsdl/test.wsdl

[WARNING] Check the abstract operation "t1" binding, part "attachment" has multiple binding. Will try to generated artiffacts anyway...
line 17 of file:/C:/NetBeansProjects/sample_projects/VS/src/conf/xml-resources/web-services/VS/wsdl/test.wsdl

[WARNING] Ingoring operation "t1": more than one part bound to body
line 15 of file:/C:/NetBeansProjects/sample_projects/VS/src/conf/xml-resources/web-services/VS/wsdl/test.wsdl


if i take away the attachment part of the t1 operation and make this like the t2 operation it builds all operations just fine, is there something different I need to do in order to use attachments?

Lavanya
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!