hi there,
i have coded a java based service with axis. i have two packages like
this:

impl.Service.java

impl.entities.SomeClass1.java 
impl.entities.SomeClass2.java 
...

The Service class uses the classes in entities. Nothing special i
think...

in my deployment descriptor i define the service like this:

 <service name="SomeService" provider="java:RPC">
  <parameter name="className" value="impl.Service"/>
  <parameter name="allowedMethods" value="*"/>
  <parameter name="scope" value="session"/>
  <namespace>http://www.mydomain.de/impl/client</namespace>
 </service>

everything works fine so far. but when i look at the wsdl there is
something that causes trouble when i generate the client (with
wsdl2java).

here is a piece of the wsdl:

<wsdl:definitions targetNamespace="http://www.mydomain.de/impl/client";>
        <wsdl:types>
        <schema targetNamespace="http://entities.client.www.mydomain.de";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

        <complexType name="SomeClass1">
        <sequence> ...........


Why is there a different namespace (look at wsdl:targetnamespace and
schema:targetnamespace)? this way i cannot compile my test client
because it uses the package name of the service itself and not the
generated classes that is suppossed to be in my client package?

i am missing something?

thanks in advance!

bye, oliver

Reply via email to