This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic