You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jose Manuel Cercós Moreno <jo...@gmail.com> on 2006/05/30 11:21:37 UTC

Problem with WSDL2Java with HTTP POST

I'm trying to create a stub from .wsdl that i had created where the
binding is POST and when i executed the wsdl2java command i get an
void interface. Why? I had been to search in google and i haven't
anything.
Thanks in advance.

WSDL

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://sencillo"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://sencillo">
	<wsdl:message name="mensajesencillo">
		<wsdl:part name="Email" type="s:string"/>
		<wsdl:part name="ServiceName" type="s:string"/>
		<wsdl:part name="OperationName" type="s:string"/>
	</wsdl:message>
	<wsdl:portType name="SencilloHttp_Post">
		<wsdl:operation name="operacionsencilla">
			<wsdl:input message="tns:mensajesencillo"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="SencilloHttp_Post" type="tns:SencilloHttp_Post">
		<http:binding verb="POST"/>
		<wsdl:operation name="operacionsencilla">
			<http:operation location="operacionsencilla"/>
			<wsdl:input>
				<mime:mimeXml part="Body"/>			
			</wsdl:input>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="WSDLTester">
		<wsdl:port name="SencilloHttp_Post" binding="tns:SencilloHttp_Post">
			<http:address
location="http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

INTERFACE

package sencillo;

public interface WSDLTester extends javax.xml.rpc.Service {
}

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Problem with WSDL2Java with HTTP POST

Posted by Jose Manuel Cercós Moreno <jo...@gmail.com>.
I have changed the input element by <mime:content
type="application/x-www-form-urlencoded" />	and get the interface
without methods.
anyway, thanks Anne.

WSDL

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://sencillo"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://sencillo">
	<wsdl:message name="mensajesencillo">
		<wsdl:part name="Email" type="s:string"/>
		<wsdl:part name="ServiceName" type="s:string"/>
		<wsdl:part name="OperationName" type="s:string"/>
	</wsdl:message>
	<wsdl:portType name="SencilloHttp_Post">
		<wsdl:operation name="operacionsencilla">
			<wsdl:input message="tns:mensajesencillo"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="SencilloHttp_Post" type="tns:SencilloHttp_Post">
		<http:binding verb="POST"/>
		<wsdl:operation name="operacionsencilla">
			<http:operation location="/operacionsencilla"/>
			<wsdl:input>
				<mime:content type="application/x-www-form-urlencoded" />	
			</wsdl:input>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="WSDLTester">
		<wsdl:port name="SencilloHttp_Post" binding="tns:SencilloHttp_Post">
			<http:address
location="http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>

INTERFACE

package sencillo;

public interface WSDLTester extends javax.xml.rpc.Service {
}



On 5/30/06, Anne Thomas Manes <at...@gmail.com> wrote:
> You don't have a message part called "Body", so this reference doesn't make
> sense:
>
> <mime:mimeXml part="Body"/>
>
> Anne
>
>
>  On 5/30/06, Jose Manuel Cercós Moreno <jo...@gmail.com> wrote:
> >
>  I'm trying to create a stub from .wsdl that i had created where the
> binding is POST and when i executed the wsdl2java command i get an
> void interface. Why? I had been to search in google and i haven't
> anything.
>  Thanks in advance.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Problem with WSDL2Java with HTTP POST

Posted by Anne Thomas Manes <at...@gmail.com>.
You don't have a message part called "Body", so this reference doesn't make
sense:

<mime:mimeXml part="Body"/>

Anne

On 5/30/06, Jose Manuel Cercós Moreno <jo...@gmail.com> wrote:
>
> I'm trying to create a stub from .wsdl that i had created where the
> binding is POST and when i executed the wsdl2java command i get an
> void interface. Why? I had been to search in google and i haven't
> anything.
> Thanks in advance.
>
> WSDL
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tns="http://sencillo"
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> targetNamespace="http://sencillo">
>         <wsdl:message name="mensajesencillo">
>                 <wsdl:part name="Email" type="s:string"/>
>                 <wsdl:part name="ServiceName" type="s:string"/>
>                 <wsdl:part name="OperationName" type="s:string"/>
>         </wsdl:message>
>         <wsdl:portType name="SencilloHttp_Post">
>                 <wsdl:operation name="operacionsencilla">
>                         <wsdl:input message="tns:mensajesencillo"/>
>                 </wsdl:operation>
>         </wsdl:portType>
>         <wsdl:binding name="SencilloHttp_Post"
> type="tns:SencilloHttp_Post">
>                 <http:binding verb="POST"/>
>                 <wsdl:operation name="operacionsencilla">
>                         <http:operation location="operacionsencilla"/>
>                         <wsdl:input>
>                                 <mime:mimeXml part="Body"/>
>                         </wsdl:input>
>                 </wsdl:operation>
>         </wsdl:binding>
>         <wsdl:service name="WSDLTester">
>                 <wsdl:port name="SencilloHttp_Post"
> binding="tns:SencilloHttp_Post">
>                         <http:address
> location="
> http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/>
>                 </wsdl:port>
>         </wsdl:service>
> </wsdl:definitions>
>
> INTERFACE
>
> package sencillo;
>
> public interface WSDLTester extends javax.xml.rpc.Service {
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: Problem with WSDL2Java with HTTP POST

Posted by Anne Thomas Manes <at...@gmail.com>.
Use Axis2.

On 5/31/06, Jose Manuel Cercós Moreno <jo...@gmail.com> wrote:
>
> Thanks Warren but i don't want a SOAP communication i want use HTTP
> POST only without SOAP protocol. I think that Axis is limited to only
> SOAP communitacion.
> I had been searching yesterday all the day in google and didn't find
> anything respect this and thanks for your english correct, english
> isn't my first language. Bye.
>
> On 5/31/06, Warren Crossing <wa...@nec.com.au> wrote:
> > What is the wsdl2java command look like exactley?  I can't believe
> > google didn't "know" the answer ;-(
> >
> > I would expect the wsdl to look like..
> >
> > <wsdl:input name="mensajesencillo>
> >         <wsdlsoap:body use="encoded"
> > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > namespace="urn:http://sencillo"/>
> > </wsdl:input>
> >
> > why does it not?
> >
> >
> > And it's not a "void" interface it's just "empty" or "with no members"
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: Problem with WSDL2Java with HTTP POST

Posted by Jose Manuel Cercós Moreno <jo...@gmail.com>.
Thanks Warren but i don't want a SOAP communication i want use HTTP
POST only without SOAP protocol. I think that Axis is limited to only
SOAP communitacion.
I had been searching yesterday all the day in google and didn't find
anything respect this and thanks for your english correct, english
isn't my first language. Bye.

On 5/31/06, Warren Crossing <wa...@nec.com.au> wrote:
> What is the wsdl2java command look like exactley?  I can't believe
> google didn't "know" the answer ;-(
>
> I would expect the wsdl to look like..
>
> <wsdl:input name="mensajesencillo>
>         <wsdlsoap:body use="encoded"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:http://sencillo"/>
> </wsdl:input>
>
> why does it not?
>
>
> And it's not a "void" interface it's just "empty" or "with no members"
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Problem with WSDL2Java with HTTP POST

Posted by Warren Crossing <wa...@nec.com.au>.
What is the wsdl2java command look like exactley?  I can't believe 
google didn't "know" the answer ;-(

I would expect the wsdl to look like..

<wsdl:input name="mensajesencillo>
	<wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="urn:http://sencillo"/>
</wsdl:input>

why does it not?


And it's not a "void" interface it's just "empty" or "with no members"

� wrote:
> I'm trying to create a stub from .wsdl that i had created where the
> binding is POST and when i executed the wsdl2java command i get an
> void interface. Why? I had been to search in google and i haven't
> anything.
> Thanks in advance.
> 
> WSDL
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tns="http://sencillo"
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> targetNamespace="http://sencillo">
>     <wsdl:message name="mensajesencillo">
>         <wsdl:part name="Email" type="s:string"/>
>         <wsdl:part name="ServiceName" type="s:string"/>
>         <wsdl:part name="OperationName" type="s:string"/>
>     </wsdl:message>
>     <wsdl:portType name="SencilloHttp_Post">
>         <wsdl:operation name="operacionsencilla">
>             <wsdl:input message="tns:mensajesencillo"/>
>         </wsdl:operation>
>     </wsdl:portType>
>     <wsdl:binding name="SencilloHttp_Post" type="tns:SencilloHttp_Post">
>         <http:binding verb="POST"/>
>         <wsdl:operation name="operacionsencilla">
>             <http:operation location="operacionsencilla"/>
>             <wsdl:input>
>                 <mime:mimeXml part="Body"/>           
>             </wsdl:input>
>         </wsdl:operation>
>     </wsdl:binding>
>     <wsdl:service name="WSDLTester">
>         <wsdl:port name="SencilloHttp_Post" 
> binding="tns:SencilloHttp_Post">
>             <http:address
> location="http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/> 
> 
>         </wsdl:port>
>     </wsdl:service>
> </wsdl:definitions>
> 
> INTERFACE
> 
> package sencillo;
> 
> public interface WSDLTester extends javax.xml.rpc.Service {
> }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org