Avatar billede fredand Forsker
13. oktober 2008 - 16:47 Der er 1 løsning

Problem accessing a wsdl

Hello!

I hope you guys can give me some input, and I also hope that I have provided enough info.

Background:
A developer working in our office left us under very short circumstances.
That lead to that I had to try to understand his work that he was working with and take on where he left.
My experiance tell me that he was almost done with it, and to me it looks really ok.
The task he was doing was to expose some webservices through Axis2.
It also looks like he has done it like this "how to" at:
http://wso2.org/library/90
(Except for renaming the war to axis2.war)


How ever when I try to deploy and access it at "http://localhost:8001/ws/test/mywebservice/services/TestFacadeService" I just get:
<Exception>
org.apache.axis2.AxisFault:
The service cannot be found for the endpoint reference (EPR) /ws/test/mywebservice/services/TestFacadeService
at org.apache.axis2.engine.DispatchPhase.checkPostConditions(Lorg.apache.axis2.context.MessageContext;)V(DispatchPhase.java:64)
...
</Exception>

To me this looks like that the AxisServlet at least answers.


Some snippet from my wsdl (testfacade.wsdl):

  <wsdl:message name="TestRequest">
      <wsdl:part name="in" element="tns:Test" />
  </wsdl:message>
  <wsdl:message name="TestResponse">
      <wsdl:part name="ut" element="tns:TestResponse" />
  </wsdl:message>
  <wsdl:message name="MyExceptionDTO">
      <wsdl:part name="fault" element="tns:MyExceptionDTO" />
  </wsdl:message>

  <wsdl:portType name="TestFacadePort">
      <wsdl:operation name="Test">
        <wsdl:input message="tns:TestRequest" />
        <wsdl:output message="tns:TestResponse" />
        <wsdl:fault name="MyExceptionDTO" message="tns:MyExceptionDTO" />
      </wsdl:operation>
  </wsdl:portType>

  <wsdl:binding name="TestFacade" type="tns:TestFacadePort">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
      <wsdl:operation name="Test">
        <soap:operation soapAction="http://localhost:8001/ws/test/mywebservice/services/Test" />
        <wsdl:input>
            <soap:body use="literal" />
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" />
        </wsdl:output>
        <wsdl:fault name="MyExceptionDTO">
            <soap:fault name="MyExceptionDTO" use="literal" />
        </wsdl:fault>
      </wsdl:operation>
  </wsdl:binding>
 
 
      <wsdl:service name="TestFacadeService">
        <wsdl:port binding="tns:TestFacade" name="TestFacade">
            <soap:address location="http://localhost:8001/ws/test/mywebservice/services" />
        </wsdl:port>
  </wsdl:service>
 

Some snippet from my web.xml:

      <servlet-mapping>
          <servlet-name>AxisServlet</servlet-name>
          <url-pattern>/*</url-pattern>
    </servlet-mapping>

It doesn't look like I can access the wsdl that to me should be located at:
http://localhost:8001/ws/test/mywebservice/services/TestFacadeService
or
http://localhost:8001/ws/test/mywebservice/services/TestFacadeService?wsdl

I use weblogic 8.1.4

So if you guys see anything that I miss please let me now, or if you would need some more info that I might have missed to provide.


Best regards
Fredrik
Avatar billede fredand Forsker
14. oktober 2008 - 17:18 #1
I think we close this one.
I will start a new thread with better description.

Best regards
Fredrik
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester