You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2010/07/24 23:50:06 UTC

How urn: URIs get mapped to packages with wsdl2java

This may be more JAXB than CXF, but here goes.

Step 1:

My SEI is annotated:

@WebService(targetNamespace = "urn:basistech.com:rosette.analysis")

My SEB is annotated:

@WebService(endpointInterface = "com.basistech.ras.Extraction",
            targetNamespace = "urn:basistech.com:rosette.analysis")

And the package-info.java for com.basistech.ras contains:

@javax.xml.bind.annotation.XmlSchema(namespace =
"urn:basistech.com:rosette.analysis" ,
                                     elementFormDefault =
javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package com.basistech.ras;

Not too surprisingly, the wsdl and the schema within say:

tns="urn:basistech.com:rosette.analysis"

Next I run wsdl2java to set up a client.

Well, the classes for the schema (the beans) wind up in:

com.basistech.rosette_analysis

while the classes for the service end up in:

com.basistech.rosette

So the 'analysis' end of things disappeared. Presumably changing the .
to a colon would cure this, but should I file a JIRA or a JAXB bz?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How urn: URIs get mapped to packages with wsdl2java

Posted by Benson Margulies <bi...@gmail.com>.
That's for sure. Oops.

On Sat, Jul 24, 2010 at 7:10 PM, Justin Edelson <ju...@gmail.com> wrote:
> Wrong list?
>
> On Jul 24, 2010, at 5:50 PM, Benson Margulies <bi...@gmail.com> wrote:
>
>> This may be more JAXB than CXF, but here goes.
>>
>> Step 1:
>>
>> My SEI is annotated:
>>
>> @WebService(targetNamespace = "urn:basistech.com:rosette.analysis")
>>
>> My SEB is annotated:
>>
>> @WebService(endpointInterface = "com.basistech.ras.Extraction",
>>            targetNamespace = "urn:basistech.com:rosette.analysis")
>>
>> And the package-info.java for com.basistech.ras contains:
>>
>> @javax.xml.bind.annotation.XmlSchema(namespace =
>> "urn:basistech.com:rosette.analysis" ,
>>                                     elementFormDefault =
>> javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
>> package com.basistech.ras;
>>
>> Not too surprisingly, the wsdl and the schema within say:
>>
>> tns="urn:basistech.com:rosette.analysis"
>>
>> Next I run wsdl2java to set up a client.
>>
>> Well, the classes for the schema (the beans) wind up in:
>>
>> com.basistech.rosette_analysis
>>
>> while the classes for the service end up in:
>>
>> com.basistech.rosette
>>
>> So the 'analysis' end of things disappeared. Presumably changing the .
>> to a colon would cure this, but should I file a JIRA or a JAXB bz?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How urn: URIs get mapped to packages with wsdl2java

Posted by Justin Edelson <ju...@gmail.com>.
Wrong list?

On Jul 24, 2010, at 5:50 PM, Benson Margulies <bi...@gmail.com> wrote:

> This may be more JAXB than CXF, but here goes.
> 
> Step 1:
> 
> My SEI is annotated:
> 
> @WebService(targetNamespace = "urn:basistech.com:rosette.analysis")
> 
> My SEB is annotated:
> 
> @WebService(endpointInterface = "com.basistech.ras.Extraction",
>            targetNamespace = "urn:basistech.com:rosette.analysis")
> 
> And the package-info.java for com.basistech.ras contains:
> 
> @javax.xml.bind.annotation.XmlSchema(namespace =
> "urn:basistech.com:rosette.analysis" ,
>                                     elementFormDefault =
> javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
> package com.basistech.ras;
> 
> Not too surprisingly, the wsdl and the schema within say:
> 
> tns="urn:basistech.com:rosette.analysis"
> 
> Next I run wsdl2java to set up a client.
> 
> Well, the classes for the schema (the beans) wind up in:
> 
> com.basistech.rosette_analysis
> 
> while the classes for the service end up in:
> 
> com.basistech.rosette
> 
> So the 'analysis' end of things disappeared. Presumably changing the .
> to a colon would cure this, but should I file a JIRA or a JAXB bz?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org