Hi Keith,

I still have problems with the WeatherService. I tried the below changes in
the wsdl but with no success.
Now it gives a "HTTP 500 - Internal Server Error"

Can you verify that my url is correct?
http://localhost:8080/axis2/services/WeatherService/Weather/Denmark/Herning

Have you tried to generate skeleton code for the wsdl by your self?

Generated services.xml:
<serviceGroup>
    <service name="WeatherService">
        <messageReceivers>
            <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out"; class=
"org.example.webservice.WeatherServiceMessageReceiverInOut"/>
        </messageReceivers>
        <parameter name="ServiceClass">
org.example.webservice.WeatherServiceSkeleton</parameter>
        <parameter name="useOriginalwsdl">true</parameter>
        <parameter name="modifyUserWSDLPortAddress">true</parameter>
        <operation name="getWeather" mep="http://www.w3.org/ns/wsdl/in-out";
>
            <actionMapping>\"\"</actionMapping>
            <outputActionMapping>urn:getWeatherResponse</
outputActionMapping>
            <faultActionMapping faultName="weatherFault">
urn:getWeatherweatherFault</faultActionMapping>
        </operation>
        <operation name="setWeather" mep="http://www.w3.org/ns/wsdl/in-out";
>
            <actionMapping>\"\"</actionMapping>
            <outputActionMapping>urn:setWeatherResponse</
outputActionMapping>
            <faultActionMapping faultName="weatherFault">
urn:setWeatherweatherFault</faultActionMapping>
        </operation>
    </service>
</serviceGroup>

Regards
Multi-Support A/S

Torben Riis
--------------------------------------------------------------------
Phone +45 96 600 600, Fax +45 96 600 601
E-mail: [EMAIL PROTECTED]
http://www.multi-support.com


                                                                           
             "keith chapman"                                               
             <[EMAIL PROTECTED]                                             
             ail.com>                                                   To 
                                       [email protected]             
             13-07-2007 07:08                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: Axis2: RESTful implementation   
             [EMAIL PROTECTED]         with Axis2                          
                  he.org                                                   
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Yes there is a mistake in the WSDL (obvious copy and paste error :))

update the relavant sections as follows,

        <operation ref="tns:getWeather" whttp:method="GET"

whttp:location="WeatherService/Weather/{country}/{city}"/>
        <operation ref="tns:setWeather" whttp:method="PUT"

whttp:location="WeatherService/Update/{country}/{city}"/>


<service name="WeatherService" interface="tns:Weather">
        <endpoint name="WeatherServiceHTTPEndpoint"
binding="tns:WeatherHTTPBinding"
                  address="http://example.org/WeatherService "/>
    </service>

It was due to the above that you got the dispatching error. Should work
now.

Thanks,
Keith.

On 7/12/07, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:
      [EMAIL PROTECTED] wrote:
      >
      > Should I not be able to reach it with the following url?
      >
      
http://localhost:8080/axis2/services/WeatherService/Weather/Denmark/Herning

      >
      >  Or have I misunderstood the new HTTPBinding.
      >       <operation ref="tns:getWeather" whttp:method="GET"
      whttp:location=
      > "WeatherServiceHTTPEndpoint/Weather/{country}/{city}"/>

      These two statements are not matching .. you've put
      WeatherService*HTTPEndpoint* in the whttp:location attribute but the
      URL
      doesn't have that.

      Sanjiva.
      --
      Sanjiva Weerawarana, Ph.D.
      Founder & Director; Lanka Software Foundation;
      http://www.opensource.lk/
      Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
      Director; Open Source Initiative; http://www.opensource.org/
      Member; Apache Software Foundation; http://www.apache.org/
      Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

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




--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


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

Reply via email to