I'm using ServiceMix 3.2.1, and Java 1.6

I've attempted to create a WebService using a POJO deployed to ServiceMix's
HTTP component.  When I hit ServiceMix at http://localhost:8192/ my service
is shown, but when I attempt to view its WSDL, I receive a 404.  (When
ServiceMix deploys my SA, however, it writes the WSDL to stdout.)

Here's the .java file I've written:

package com.test;

import javax.jws.WebService;
import javax.xml.ws.Holder;

@WebService(serviceName = "HelloService", targetNamespace = "myNamespace",
endpointInterface = "com.test.HelloService")
public class HelloService {

        public HelloService() {
        }

        public String getHello() {
                return "Hello World!";
        }
}

Here's the xbean.xml for my SU:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";>

    <jsr181:endpoint pojoClass="com.test.HelloService" />

</beans>

Here's the xbean.xml for the servicemix-http SU:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0";>

  <http:endpoint service="myNamespace:HelloService"
                 endpoint="soap"
                 targetService="person:HelloService"
                 role="consumer" 
                 locationURI="http://0.0.0.0:8192/HelloService/";
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 soap="true" />

</beans>

Here is the jbi.xml for my SA:
<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi"; version="1.0">
  <service-assembly>
    <identification>
      <name>hello-sa</name>
      <description>ServiceMix :: Samples :: WSDL first :: SA</description>
    </identification>
    <service-unit>
      <identification>
        <name>hello-su</name>
        <description>ServiceMix is an open source ESB based on the Java
Business
    Integration framework - JSR-208</description>
      </identification>
      <target>
        <artifacts-zip>hello-su.zip</artifacts-zip>
        <component-name>servicemix-jsr181</component-name>
      </target>
    </service-unit>
    <service-unit>
      <identification>
        <name>hello-http-su</name>
        <description>ServiceMix is an open source ESB based on the Java
Business
    Integration framework - JSR-208</description>
      </identification>
      <target>
        <artifacts-zip>hello-http-su.zip</artifacts-zip>
        <component-name>servicemix-http</component-name>
      </target>
    </service-unit>
  </service-assembly>
</jbi>


This is from the ServiceMix stdout when attempting to retrieve the WSDL:
DEBUG - JettyContextManager            - Dispatching job:
[EMAIL PROTECTED],io=0,w=true,b=false|false]
DEBUG - ConsumerProcessor              - Receiving HTTP request: GET
/HelloService/?wsdl HTTP/1.1
Host: vegas1874:8192
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11)
Gecko/20071127 Firefox/2.0.0.11
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8192/


DEBUG - JettyContextManager            - Dispatching job:
[EMAIL PROTECTED],io=1,w=true,b=false|false]
DEBUG - ConsumerProcessor              - Receiving HTTP request: GET
/HelloService/main.wsdl HTTP/1.1
Host: vegas1874:8192
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11)
Gecko/2
0071127 Firefox/2.0.0.11
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8192/


DEBUG - HttpComponent                  - Retrieving proxied endpoint
definition
DEBUG - HttpComponent                  - Could not retrieve endpoint for
targetService
DEBUG - HttpComponent                  - Could not retrieve endpoint for
service/endpoint


I suspect that my endpoint and my service are not specified quite right, but
I don't see the problem.
-- 
View this message in context: 
http://www.nabble.com/Where%27s-my-WSDL--tp15460599s12049p15460599.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to