A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Web Services
Author
Please help with wscompile warnings
Julien Martin
Ranch Hand
Joined: Apr 24, 2004
Posts: 384
posted
Nov 20, 2004 09:52:00
0
Hello,
I am trying to generate client-side classes for a web service and I always get the following warnings even though my wsdl file is valid.
[wscompile] warning: ignoring port "monPort": no SOAP address specified [wscompile] warning: Service "monService" does not contain any usable ports
Here is my wsdl
<?xml version="1.0" encoding="UTF-8"?> <definitions name="MonServiceWebUn" targetNamespace="http://localhost:8080/MonServiceWebUn.wsdl" xmlns:tns="http://localhost:8080/MonServiceWebUn.wsdl" xmlns:soap="http://www.schemas.xmlsoap.org/wsdl/soap" xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types/> <message name="GetResponse"> <part name="monMessage" type="xsd:string"/> </message> <portType name="monPortType"> <operation name="maMethode"> <output name="monNom" message="tns:GetResponse"/> </operation> </portType> <binding name="monBinding" type="tns:monPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="maMethode"> <output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://localhost:8080/jaxrpc-MonServiceWebUn/MonServiceWebUn"/> </output> </operation> </binding> <service name="monService"> <port name="monPort" binding="tns:monBinding"> <soap:address location="http://localhost:8080/jaxrpc-MonServiceWebUn/MonServiceWebUn"/> </port> </service> </definitions>
Can anyone tell me what's wrong with my wsdl please?
Thanks in advance,
Julien.
Julien Martin
Ranch Hand
Joined: Apr 24, 2004
Posts: 384
posted
Nov 24, 2004 07:25:00
0
I found out what's wrong: this line is wrong:
xmlns:soap="http://www.schemas.xmlsoap.org/wsdl/soap"
it should be:
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
Julien.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Please help with wscompile warnings
Similar Threads
Beginner needs help with web service endpoint name
Proper way to define a fault in a WSDL
What's wrong with my wsdl?
Where is my generated stub??
modeler error: invalid entity name: "GetResponse"
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter