there were two problems

<wsdl:definitions name="CalculableHouseholdService"
        targetNamespace="http://webservice/definitions";
        xmlns:hh="http://webservice/schema";
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
        xmlns:xsd="http://www.w3.org/2001/XMLSchema";
        xmlns:tns="http://webservice/definitions";>

here
targetNamespace and xmlns:tns had a spelling mistake.


        <wsdl:types>
        <xsd:schema elementFormDefault="qualified"
targetNamespace="http://test/namespace";
                    xmlns:tns="http://test/namespace";>
            <xsd:import namespace="http://webservice/schema";
schemaLocation="household.xsd" />
        </xsd:schema>
        </wsdl:types>
you have to enclose the import tag inside a schema.


Amila.

On Nov 13, 2007 6:34 PM, Roman Schönbichler
<[EMAIL PROTECTED]> wrote:
> Here is the complete wsdl file...
>
> thanks for your help!
>
> Greets
> Roman
>
>
> ---- Original Message ----
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: Re: WSDL2Java
> Date: Tue, 13 Nov 2007 18:25:51 +0530
>
> >On Nov 13, 2007 4:50 PM, Roman Schönbichler
> ><[EMAIL PROTECTED]> wrote:
> >> Hey again!
> >> First of all thanks for your suggestions!
> >>
> >> I've found some more errors in my wsdl file, and managed to get it
> >to
> >> work,
> >> and so I was able to generate a service out of my wsdl file using
> >> wsdl2java.
> >>
> >> But I was wondering about the generated code.
> >>
> >> First of all considering my messages and PortTypes...
> >>
> >> <wsdl:message name="calculateRequest">
> >>                 <wsdl:part name="parameters"
> >element="hh:Household"/>
> >>         </wsdl:message>
> >>
> >>         <wsdl:message name="calculateResponse">
> >>                 <wsdl:part name="body" element="hh:Result"/>
> >>         </wsdl:message>
> >>
> >>         <wsdl:message name="getInputObjectsRequest"/>
> >>         <wsdl:message name="getInputObjectsResponse">
> >>                 <wsdl:part name="parameters"
> >element="hh:Household"/>
> >>         </wsdl:message>
> >>
> >>         <wsdl:portType name="CalculableHouseholdServicePortType">
> >>                 <wsdl:operation name="getInputObjects">
> >>                         <wsdl:input
> >message="tns:getInputObjectsRequest"/>
> >>                         <wsdl:output
> >message="tns:getInputObjectsResponse"/>
> >>                 </wsdl:operation>
> >>                 <wsdl:operation name="calculate">
> >>                         <wsdl:input
> >message="tns:calculateRequest"/>
> >>                         <wsdl:output
> >message="tns:calculateResponse"/>
> >>                 </wsdl:operation>
> >>         </wsdl:portType>
> >> ... I wasn't expecting the Skeleton to look like
> >>
> >> public void getInputObjects() (expected: public Household
> >> getInputObjects() )
> >> public void calculate() (expected: public Result calculate(
> >Household
> >> h )
> >>
> >can you send your complete wsdl?
> >just attach it as a file.
> >
> >> Also I was wondering about the generated Messagereceiver class....
> >> It is never invoked, and extended from a deprecated class....
> >>
> >Message receiver is invoked from the axis2 server when you deploy it.
> >
> >> If I'm not missing the point of generating the java classes, I
> >could
> >> simply write the "skeleton" class on my own, cause I don't see the
> >> benefit of it.
> >
> >It depends on your wsdl. So it is better to  try.
> >
> >thanks,
> >Amila.
> >
> >>
> >> Thanks again
> >> Greets
> >> Roman
> >>
> >>
> >>
> >---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> >--
> >Amila Suriarachchi,
> >WSO2 Inc.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-- 
Amila Suriarachchi,
WSO2 Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to