You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by doug <do...@gmail.com> on 2007/08/09 09:00:50 UTC

Re: java2wsdl -> wsdl2java lossy? (newbie alert!)

Hi list,
I apologise in advance for my ignorance but I am trying to 
convert my Axis 1 SOAP client/services to CXF, and as a complete 
newbie to CXF and JAXB, am having quite a few difficulties.

My latest issue is the same as a recent correspondent (Brett) in that my
web service interface methods that ought to return arrays are being 
converted into java.util.Lists. 

Also some of my original java prototype interface methods had 
       throws RemoteException  
clauses which apparently do not propogate through the WSDL to the 
generated java source.

On the first issue, James Mao replied to Brett:
---------------------------
Yes, There are two ways

Put the customization section into your schema in the wsdl,

   <xsd:annotation>
   <xsd:appinfo>
       <jxb:globalBindings collectionType="indexed"/>
   </xsd:appinfo>
   </xsd:annotation>


or change it to an external style, and feed the 'binding file' to the
 > wsdl2java -b $YOUR_BINDNIG_FILE
-----------------------------

Trying to use the second method, I have a bindings.jxb file that 
looks like the following, where  ./PfC.wsdl is m 
java2wsdl generated file:

<jxb:bindings jxb:version="1.0"
      xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
  <jxb:bindings schemaLocation="./PfC.wsdl" node="/xsd:schema">
    <jxb:globalBindings collectionType="indexed">
    </jxb:globalBindings>
  </jxb:bindings>
</jxb:bindings>

Unfortunately it doesn't seem to work for me when I run 
wsdl2java -b bindings.jxb ...
because, although it runs without throwing any exsceptions, 
the array return methods still return java.util.Lists
As I mentioned, I am a complete novice to this, so would 
appreciate if someone could provide a more explicit answer
(and also a pointer to how to solve the exception returning problem)

Should I have explicitly annotated all the array return methods in my original 
java prototype interface somehow?

Many thanks
Doug

P.S. running wsdl2java - 2.0-incubator

Re: java2wsdl -> wsdl2java lossy? (newbie alert!)

Posted by doug <do...@gmail.com>.
Hi James,

On Friday 10 August 2007 13:03, James Mao wrote:
> Well, i tried yesterday, i have the same results as you gave, the
> previous binding file is not correct, you can not put the wsdl location
> inside the schemaLocation.

Oh. That bit actually seemed to work, in the sense that changing the
 node to something like node="/xsd:schema/annotation/appinfo"
throws exceptions owing to an empty nodeset or some such, but throws no such 
errors if I actually added the annotation and appinfo elements to the schema.
Of course it didn't influence the generated WS interface at all.

> The interface really did not change, what changed is the type class, you
> can see there is String[], but it use the List indeed
> I also tried the jaxws ri, what i got is the same results.
>
> I guess you must use String[] here, so hope someone else can shed some
> lights here.

Well, I have about 5 services, each with around 10 or so String[] return
methods. I would prefer not to change the client and server code to use
Lists if I could avoid it, but will do what I have to do I guess.
I heard good things about MTOM for file transfer so I want to stick to a 
solution where its accessible. Not sure that jaxws ri supports it.


Am still looking for insight into the server side Exception throwing 
aspects, if anyone had any pointers?

Thanks 
Doug

> > If I explicitly modify the generated WSDL file as follows:
> >
> > <wsdl:types>
> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> >      xmlns:tns="urn:srv"
> >      attributeFormDefault="unqualified"
> >      elementFormDefault="unqualified"
> >      targetNamespace="urn:srv"
> >      xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
> >      jxb:version="1.0" >
> >   <xs:annotation>
> >     <xs:appinfo>
> > <!--      <jxb:globalBindings collectionType="java.util.ArrayList"/> -->
> >       <jxb:globalBindings collectionType="indexed"/>
> >     </xs:appinfo>
> >   </xs:annotation>
> >
> > [snip]
> >
> > <xs:complexType name="getApplicationPushletIDsResponse">
> > <xs:sequence>
> > <xs:element maxOccurs="unbounded" minOccurs="0" name="return"
> > type="xs:string"/>
> > </xs:sequence>
> > </xs:complexType>
> >
> > [cut]
> >
> > then wsdl2java runs without any exceptions and I still end up with
> > java.util.List responses:
> >
> > @WebService(targetNamespace = "urn:srv", name = "PfC")
> > public interface PfC {
> >     @ResponseWrapper(targetNamespace = "urn:srv", className
> > = "au.net.mmsn.pfc.servlet.pfcws.GetApplicationPushletIDsResponse",
> > localName = "getApplicationPushletIDsResponse")
> >     @RequestWrapper(targetNamespace = "urn:srv", className
> > = "au.net.mmsn.pfc.servlet.pfcws.GetApplicationPushletIDs", localName
> > = "getApplicationPushletIDs")
> >     @WebResult(targetNamespace = "", name = "return")
> >     @WebMethod
> >     public java.util.List<java.lang.String> getApplicationPushletIDs();
> >
> >
> > My original prototype interface was:
> >
> > @WebService(name="PfC",
> >             targetNamespace="urn:srv",
> >             serviceName="PfCService",
> >             portName="PfC")
> > @SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
> >              parameterStyle = ParameterStyle.WRAPPED)
> > public interface PfC extends java.rmi.Remote {
> >     // primary pushlet url
> >     public java.lang.String   getPushletURL() throws
> > java.rmi.RemoteException; public java.lang.String[]
> > getApplicationPushletIDs() throws
> >              java.rmi.RemoteException;
> >     ...
> >
> >
> > The commandline was:
> > wsdl2java -verbose -server -compile -classdir
> > /home/timeout/ddb/MMSN/gridsphere-2.2.7/projects/pfc/build/classes -impl
> > -d /home/timeout/ddb/MMSN/gridsphere-2.2.7/projects/pfc/src -p
> > au.net.mmsn.pfc.servlet.pfcws PfC.wsdl
> > wsdl2java - 2.0-incubator
> >
> >
> > Changing the collectionType attribute to an ArrayList has no effect
> > iether.
> >
> >
> > Hope somone can see what I am doing wrong.
> > thanks
> > Doug
> >
> > On Thursday 09 August 2007 17:00, doug wrote:
> >> Hi list,
> >> I apologise in advance for my ignorance but I am trying to
> >> convert my Axis 1 SOAP client/services to CXF, and as a complete
> >> newbie to CXF and JAXB, am having quite a few difficulties.
> >>
> >> My latest issue is the same as a recent correspondent (Brett) in that my
> >> web service interface methods that ought to return arrays are being
> >> converted into java.util.Lists.
> >>
> >> Also some of my original java prototype interface methods had
> >>        throws RemoteException
> >> clauses which apparently do not propogate through the WSDL to the
> >> generated java source.
> >>
> >> On the first issue, James Mao replied to Brett:
> >> ---------------------------
> >> Yes, There are two ways
> >>
> >> Put the customization section into your schema in the wsdl,
> >>
> >>    <xsd:annotation>
> >>    <xsd:appinfo>
> >>        <jxb:globalBindings collectionType="indexed"/>
> >>    </xsd:appinfo>
> >>    </xsd:annotation>
> >>
> >>
> >> or change it to an external style, and feed the 'binding file' to the
> >>
> >>  > wsdl2java -b $YOUR_BINDNIG_FILE
> >>
> >> -----------------------------
> >>
> >> Trying to use the second method, I have a bindings.jxb file that
> >> looks like the following, where  ./PfC.wsdl is m
> >> java2wsdl generated file:
> >>
> >> <jxb:bindings jxb:version="1.0"
> >>       xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
> >>       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
> >>       xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
> >>   <jxb:bindings schemaLocation="./PfC.wsdl" node="/xsd:schema">
> >>     <jxb:globalBindings collectionType="indexed">
> >>     </jxb:globalBindings>
> >>   </jxb:bindings>
> >> </jxb:bindings>
> >>
> >> Unfortunately it doesn't seem to work for me when I run
> >> wsdl2java -b bindings.jxb ...
> >> because, although it runs without throwing any exsceptions,
> >> the array return methods still return java.util.Lists
> >> As I mentioned, I am a complete novice to this, so would
> >> appreciate if someone could provide a more explicit answer
> >> (and also a pointer to how to solve the exception returning problem)
> >>
> >> Should I have explicitly annotated all the array return methods in my
> >> original java prototype interface somehow?
> >>
> >> Many thanks
> >> Doug
> >>
> >> P.S. running wsdl2java - 2.0-incubator

Re: java2wsdl -> wsdl2java lossy? (newbie alert!)

Posted by James Mao <ja...@iona.com>.
Hi Doug,

Well, i tried yesterday, i have the same results as you gave, the
previous binding file is not correct, you can not put the wsdl location
inside the schemaLocation.

The interface really did not change, what changed is the type class, you
can see there is String[], but it use the List indeed
I also tried the jaxws ri, what i got is the same results.

I guess you must use String[] here, so hope someone else can shed some
lights here.


James


> If I explicitly modify the generated WSDL file as follows:
>
> <wsdl:types>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>      xmlns:tns="urn:srv"
>      attributeFormDefault="unqualified"
>      elementFormDefault="unqualified"
>      targetNamespace="urn:srv"
>      xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
>      jxb:version="1.0" >
>   <xs:annotation>
>     <xs:appinfo>
> <!--      <jxb:globalBindings collectionType="java.util.ArrayList"/> -->
>       <jxb:globalBindings collectionType="indexed"/>
>     </xs:appinfo>
>   </xs:annotation>
>
> [snip]
>
> <xs:complexType name="getApplicationPushletIDsResponse">
> <xs:sequence>
> <xs:element maxOccurs="unbounded" minOccurs="0" name="return" 
> type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
>
> [cut]
>
> then wsdl2java runs without any exceptions and I still end up with  
> java.util.List responses:
>
> @WebService(targetNamespace = "urn:srv", name = "PfC")
> public interface PfC {
>     @ResponseWrapper(targetNamespace = "urn:srv", className 
> = "au.net.mmsn.pfc.servlet.pfcws.GetApplicationPushletIDsResponse", localName 
> = "getApplicationPushletIDsResponse")
>     @RequestWrapper(targetNamespace = "urn:srv", className 
> = "au.net.mmsn.pfc.servlet.pfcws.GetApplicationPushletIDs", localName 
> = "getApplicationPushletIDs")
>     @WebResult(targetNamespace = "", name = "return")
>     @WebMethod
>     public java.util.List<java.lang.String> getApplicationPushletIDs();
>
>
> My original prototype interface was:
>
> @WebService(name="PfC",
>             targetNamespace="urn:srv",
>             serviceName="PfCService",
>             portName="PfC")
> @SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
>              parameterStyle = ParameterStyle.WRAPPED)
> public interface PfC extends java.rmi.Remote {
>     // primary pushlet url
>     public java.lang.String   getPushletURL() throws java.rmi.RemoteException;
>     public java.lang.String[] getApplicationPushletIDs() throws  
>              java.rmi.RemoteException;
>     ...
>
>
> The commandline was:
> wsdl2java -verbose -server -compile -classdir /home/timeout/ddb/MMSN/gridsphere-2.2.7/projects/pfc/build/classes -impl -d /home/timeout/ddb/MMSN/gridsphere-2.2.7/projects/pfc/src -p 
> au.net.mmsn.pfc.servlet.pfcws PfC.wsdl
> wsdl2java - 2.0-incubator
>
>
> Changing the collectionType attribute to an ArrayList has no effect iether.
>
>
> Hope somone can see what I am doing wrong.
> thanks
> Doug
>
>
> On Thursday 09 August 2007 17:00, doug wrote:
>   
>> Hi list,
>> I apologise in advance for my ignorance but I am trying to
>> convert my Axis 1 SOAP client/services to CXF, and as a complete
>> newbie to CXF and JAXB, am having quite a few difficulties.
>>
>> My latest issue is the same as a recent correspondent (Brett) in that my
>> web service interface methods that ought to return arrays are being
>> converted into java.util.Lists.
>>
>> Also some of my original java prototype interface methods had
>>        throws RemoteException
>> clauses which apparently do not propogate through the WSDL to the
>> generated java source.
>>
>> On the first issue, James Mao replied to Brett:
>> ---------------------------
>> Yes, There are two ways
>>
>> Put the customization section into your schema in the wsdl,
>>
>>    <xsd:annotation>
>>    <xsd:appinfo>
>>        <jxb:globalBindings collectionType="indexed"/>
>>    </xsd:appinfo>
>>    </xsd:annotation>
>>
>>
>> or change it to an external style, and feed the 'binding file' to the
>>
>>  > wsdl2java -b $YOUR_BINDNIG_FILE
>>
>> -----------------------------
>>
>> Trying to use the second method, I have a bindings.jxb file that
>> looks like the following, where  ./PfC.wsdl is m
>> java2wsdl generated file:
>>
>> <jxb:bindings jxb:version="1.0"
>>       xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
>>       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
>>       xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
>>   <jxb:bindings schemaLocation="./PfC.wsdl" node="/xsd:schema">
>>     <jxb:globalBindings collectionType="indexed">
>>     </jxb:globalBindings>
>>   </jxb:bindings>
>> </jxb:bindings>
>>
>> Unfortunately it doesn't seem to work for me when I run
>> wsdl2java -b bindings.jxb ...
>> because, although it runs without throwing any exsceptions,
>> the array return methods still return java.util.Lists
>> As I mentioned, I am a complete novice to this, so would
>> appreciate if someone could provide a more explicit answer
>> (and also a pointer to how to solve the exception returning problem)
>>
>> Should I have explicitly annotated all the array return methods in my
>> original java prototype interface somehow?
>>
>> Many thanks
>> Doug
>>
>> P.S. running wsdl2java - 2.0-incubator
>>     
>
>   

Re: java2wsdl -> wsdl2java lossy? (newbie alert!)

Posted by doug <do...@gmail.com>.
If I explicitly modify the generated WSDL file as follows:

<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:tns="urn:srv"
     attributeFormDefault="unqualified"
     elementFormDefault="unqualified"
     targetNamespace="urn:srv"
     xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
     jxb:version="1.0" >
  <xs:annotation>
    <xs:appinfo>
<!--      <jxb:globalBindings collectionType="java.util.ArrayList"/> -->
      <jxb:globalBindings collectionType="indexed"/>
    </xs:appinfo>
  </xs:annotation>

[snip]

<xs:complexType name="getApplicationPushletIDsResponse">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="return" 
type="xs:string"/>
</xs:sequence>
</xs:complexType>

[cut]

then wsdl2java runs without any exceptions and I still end up with  
java.util.List responses:

@WebService(targetNamespace = "urn:srv", name = "PfC")
public interface PfC {
    @ResponseWrapper(targetNamespace = "urn:srv", className 
= "au.net.mmsn.pfc.servlet.pfcws.GetApplicationPushletIDsResponse", localName 
= "getApplicationPushletIDsResponse")
    @RequestWrapper(targetNamespace = "urn:srv", className 
= "au.net.mmsn.pfc.servlet.pfcws.GetApplicationPushletIDs", localName 
= "getApplicationPushletIDs")
    @WebResult(targetNamespace = "", name = "return")
    @WebMethod
    public java.util.List<java.lang.String> getApplicationPushletIDs();


My original prototype interface was:

@WebService(name="PfC",
            targetNamespace="urn:srv",
            serviceName="PfCService",
            portName="PfC")
@SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL,
             parameterStyle = ParameterStyle.WRAPPED)
public interface PfC extends java.rmi.Remote {
    // primary pushlet url
    public java.lang.String   getPushletURL() throws java.rmi.RemoteException;
    public java.lang.String[] getApplicationPushletIDs() throws  
             java.rmi.RemoteException;
    ...


The commandline was:
wsdl2java -verbose -server -compile -classdir /home/timeout/ddb/MMSN/gridsphere-2.2.7/projects/pfc/build/classes -impl -d /home/timeout/ddb/MMSN/gridsphere-2.2.7/projects/pfc/src -p 
au.net.mmsn.pfc.servlet.pfcws PfC.wsdl
wsdl2java - 2.0-incubator


Changing the collectionType attribute to an ArrayList has no effect iether.


Hope somone can see what I am doing wrong.
thanks
Doug


On Thursday 09 August 2007 17:00, doug wrote:
> Hi list,
> I apologise in advance for my ignorance but I am trying to
> convert my Axis 1 SOAP client/services to CXF, and as a complete
> newbie to CXF and JAXB, am having quite a few difficulties.
>
> My latest issue is the same as a recent correspondent (Brett) in that my
> web service interface methods that ought to return arrays are being
> converted into java.util.Lists.
>
> Also some of my original java prototype interface methods had
>        throws RemoteException
> clauses which apparently do not propogate through the WSDL to the
> generated java source.
>
> On the first issue, James Mao replied to Brett:
> ---------------------------
> Yes, There are two ways
>
> Put the customization section into your schema in the wsdl,
>
>    <xsd:annotation>
>    <xsd:appinfo>
>        <jxb:globalBindings collectionType="indexed"/>
>    </xsd:appinfo>
>    </xsd:annotation>
>
>
> or change it to an external style, and feed the 'binding file' to the
>
>  > wsdl2java -b $YOUR_BINDNIG_FILE
>
> -----------------------------
>
> Trying to use the second method, I have a bindings.jxb file that
> looks like the following, where  ./PfC.wsdl is m
> java2wsdl generated file:
>
> <jxb:bindings jxb:version="1.0"
>       xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
>       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
>       xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
>   <jxb:bindings schemaLocation="./PfC.wsdl" node="/xsd:schema">
>     <jxb:globalBindings collectionType="indexed">
>     </jxb:globalBindings>
>   </jxb:bindings>
> </jxb:bindings>
>
> Unfortunately it doesn't seem to work for me when I run
> wsdl2java -b bindings.jxb ...
> because, although it runs without throwing any exsceptions,
> the array return methods still return java.util.Lists
> As I mentioned, I am a complete novice to this, so would
> appreciate if someone could provide a more explicit answer
> (and also a pointer to how to solve the exception returning problem)
>
> Should I have explicitly annotated all the array return methods in my
> original java prototype interface somehow?
>
> Many thanks
> Doug
>
> P.S. running wsdl2java - 2.0-incubator

Re: deployment on eclipse {cxf newbie}

Posted by denny_xu <fu...@iona.com>.
Hi

This is a known issue, CXF does not support to generate code like that
(generate wsdl from code and then generate codes from wsdl ), we discussed
it with CXF team guys, it will be fixed once CXF supports that use case.

Thanks
Denny


blacksheep wrote:
> 
> Hi Denny,
> 
> The other point that I was uncomfortable with the plugin was generating
> the
> implementation and client classes. They were not compatible with the
> interface's method definitions. One sample might explain the problem:
> 
> One of my interface's method:
> 
> @WebResult(targetNamespace="http://service.me.com/", name="customerlist",
> partName="customerlist")
> @WebMethod(operationName="getCustomerList", exclude=false)
> public List<Customer> getCustomerList();
> 
> and the implemention was generated as:
> 
> *public* CustomerArray getCustomerList() { ... }
> 
> where the CustomerArray is a generated class for binding. And of course
> after the impl class generation I get compiler errors.
> 
> Thanks,
> 
> 
> On 8/17/07, denny_xu <fu...@iona.com> wrote:
>>
>>
>> Hi Anne
>>
>> .deploy file is a xmi format file which mode is defined by EMF,  so you
>> want
>> to find the syntax for type of file you can look at its EMF model file in
>> the project
>> "org.eclipse.stp.soas.deploy.models.deployfile\models\DeployFile.ecore"
>> in
>> STP, but we do not suggest to  hand jam the xml - formatted .deploy file,
>> there are some constrains for values of the elements in the file, and you
>> will get some errors just like  " Could not locate package constructor".
>>
>> As Mustafa mentioned, for this moment, you should create connection
>> profiles
>> for the servers before deployment,  we are trying to refactor the
>> deployment
>> framework, for next release of stp you just need to create servers using
>> wtp
>> server creation wizard and the server list will be poped up when you try
>> to
>> add a target.
>>
>> For the problem of "Could not locate package constructor", could you
>> provide
>> more details?
>>
>> Thanks
>> Denny
>>
>>
>>
>> Anne Racel-2 wrote:
>> >
>> > Thanks, Mustafa, I'm one step closer.....
>> >
>> > Now I'm getting an error about missing packages?
>> >
>> > Could not locate package constructor (2x's)
>> >
>> > And yes, James, I'd be happy to update the wiki as soon as I get this
>> > working!
>> >
>> > -----Original Message-----
>> > From: James Mao [mailto:james.mao@iona.com]
>> > Sent: Thursday, August 16, 2007 11:48 PM
>> > To: cxf-user@incubator.apache.org
>> > Subject: Re: deployment on eclipse {cxf newbie}
>> >
>> > Hi Guys,
>> >
>> > If it works for you, can you guys kindly update the wiki page,
>> >
>> http://cwiki.apache.org/confluence/display/CXF20DOC/CXF+tools+in+Eclipse
>> > That's quite useful information.
>> >
>> > You can list all the requirement steps, if you feel it's necessary
>> >
>> > Thanks
>> > James
>> >
>> >> I am sorry I forgot to mention you creating a connection profile for
>> >> the servers. In fact that was the point where I struggled
>> >> with. File>New>Connection Profiles>Connection Profile and add one
>> >> server impl.
>> >>
>> >> In case you need it urgent, I also attached the .deploy file.
>> >>
>> >> On 8/16/07, *Anne Racel* <aracel@cormineid.com
>> >> <ma...@cormineid.com>> wrote:
>> >>
>> >>     Thanks.  I read it.  I also saw the comment here
>> >>     ( http://cwiki.apache.org/CXF20DOC/cxf-tools-in-eclipse.html) that
>> >>     said
>> >>     that that tutorial was out of date, so I both read the document
>> > and
>> >>     viewed the referenced flash-like movie on the tools page.  In both
>> >>     cases, you're to create the Deployment file (File/New/Other/SOA
>> >>     Tools/Deployment Profile), go to the Configuration tab, then 'Add
>> >>     Target'.  Unfortunately, when I try to add a target, the list only
>> >>     shows
>> >>     an empty Tomcat folder, even though I've added 2 Tomcat servers
>> > (mind
>> >>     you, those servers show up on every other menu that they're
>> > supposed
>> >>     to).  I figured it would take me longer to figure out why the
>> > server
>> >>     weren't showing up than to hand jam the xml - formatted .deploy
>> > file.
>> >>     But I can't find the syntax for the file, so I can't modify it.
>> >>
>> >>     -----Original Message-----
>> >>     From: Mustafa Egilmezbilek [mailto:egilmezbilek@gmail.com
>> >>     <ma...@gmail.com>]
>> >>     Sent: Thursday, August 16, 2007 1:19 PM
>> >>     To: cxf-user@incubator.apache.org
>> >>     <ma...@incubator.apache.org>
>> >>     Subject: Re: deployment on eclipse {cxf newbie}
>> >>
>> >>     You can get it free if you read this article:
>> >>     http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-soatp.html
>> >>
>> >>     Hope it helps.
>> >>
>> >>
>> >>     On 8/16/07, Anne Racel <aracel@cormineid.com
>> >>     <ma...@cormineid.com>> wrote:
>> >>     >
>> >>     > Where can I find the syntax for the eclipse .deploy file?  I
>> >>     can't get
>> >>     > the system to recognize the servers I have installed, so I
>> >>     thought I'd
>> >>     > manually add the information.
>> >>     >
>> >>
>> >>
>> >>
>> >>     --
>> >>     Mustafa Egilmezbilek
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Mustafa Egilmezbilek
>> >>
>> >
>> ------------------------------------------------------------------------
>> >>
>> >> <?xml version="1.0" encoding="UTF-8"?>
>> >> <deployFile:Root xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>> > xmlns:deployFile="http://www.eclipse.org/stp/models/deploy/deployfile"
>> > name="deploy" description="">
>> >>   <package packageFile="wsdl/me.wsdl">
>> >>     <targetConfiguration targetServer="Tomcat 5.5.23"/>
>> >>   </package>
>> >>   <server targetingConfiguration="//@package.0/@targetConfiguration.0"
>> > profileName="Tomcat 5.5.23"/>
>> >> </deployFile:Root>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Re%3A-java2wsdl--%3E-wsdl2java-lossy--%28newbie-alert%21%29-tf4240919.html#a12194639
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Mustafa Egilmezbilek
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-java2wsdl--%3E-wsdl2java-lossy--%28newbie-alert%21%29-tf4240919.html#a12196982
Sent from the cxf-user mailing list archive at Nabble.com.


Re: deployment on eclipse {cxf newbie}

Posted by Mustafa Egilmezbilek <eg...@gmail.com>.
Hi Denny,

The other point that I was uncomfortable with the plugin was generating the
implementation and client classes. They were not compatible with the
interface's method definitions. One sample might explain the problem:

One of my interface's method:

@WebResult(targetNamespace="http://service.me.com/", name="customerlist",
partName="customerlist")
@WebMethod(operationName="getCustomerList", exclude=false)
public List<Customer> getCustomerList();

and the implemention was generated as:

*public* CustomerArray getCustomerList() { ... }

where the CustomerArray is a generated class for binding. And of course
after the impl class generation I get compiler errors.

Thanks,


On 8/17/07, denny_xu <fu...@iona.com> wrote:
>
>
> Hi Anne
>
> .deploy file is a xmi format file which mode is defined by EMF,  so you
> want
> to find the syntax for type of file you can look at its EMF model file in
> the project
> "org.eclipse.stp.soas.deploy.models.deployfile\models\DeployFile.ecore" in
> STP, but we do not suggest to  hand jam the xml - formatted .deploy file,
> there are some constrains for values of the elements in the file, and you
> will get some errors just like  " Could not locate package constructor".
>
> As Mustafa mentioned, for this moment, you should create connection
> profiles
> for the servers before deployment,  we are trying to refactor the
> deployment
> framework, for next release of stp you just need to create servers using
> wtp
> server creation wizard and the server list will be poped up when you try
> to
> add a target.
>
> For the problem of "Could not locate package constructor", could you
> provide
> more details?
>
> Thanks
> Denny
>
>
>
> Anne Racel-2 wrote:
> >
> > Thanks, Mustafa, I'm one step closer.....
> >
> > Now I'm getting an error about missing packages?
> >
> > Could not locate package constructor (2x's)
> >
> > And yes, James, I'd be happy to update the wiki as soon as I get this
> > working!
> >
> > -----Original Message-----
> > From: James Mao [mailto:james.mao@iona.com]
> > Sent: Thursday, August 16, 2007 11:48 PM
> > To: cxf-user@incubator.apache.org
> > Subject: Re: deployment on eclipse {cxf newbie}
> >
> > Hi Guys,
> >
> > If it works for you, can you guys kindly update the wiki page,
> > http://cwiki.apache.org/confluence/display/CXF20DOC/CXF+tools+in+Eclipse
> > That's quite useful information.
> >
> > You can list all the requirement steps, if you feel it's necessary
> >
> > Thanks
> > James
> >
> >> I am sorry I forgot to mention you creating a connection profile for
> >> the servers. In fact that was the point where I struggled
> >> with. File>New>Connection Profiles>Connection Profile and add one
> >> server impl.
> >>
> >> In case you need it urgent, I also attached the .deploy file.
> >>
> >> On 8/16/07, *Anne Racel* <aracel@cormineid.com
> >> <ma...@cormineid.com>> wrote:
> >>
> >>     Thanks.  I read it.  I also saw the comment here
> >>     ( http://cwiki.apache.org/CXF20DOC/cxf-tools-in-eclipse.html) that
> >>     said
> >>     that that tutorial was out of date, so I both read the document
> > and
> >>     viewed the referenced flash-like movie on the tools page.  In both
> >>     cases, you're to create the Deployment file (File/New/Other/SOA
> >>     Tools/Deployment Profile), go to the Configuration tab, then 'Add
> >>     Target'.  Unfortunately, when I try to add a target, the list only
> >>     shows
> >>     an empty Tomcat folder, even though I've added 2 Tomcat servers
> > (mind
> >>     you, those servers show up on every other menu that they're
> > supposed
> >>     to).  I figured it would take me longer to figure out why the
> > server
> >>     weren't showing up than to hand jam the xml - formatted .deploy
> > file.
> >>     But I can't find the syntax for the file, so I can't modify it.
> >>
> >>     -----Original Message-----
> >>     From: Mustafa Egilmezbilek [mailto:egilmezbilek@gmail.com
> >>     <ma...@gmail.com>]
> >>     Sent: Thursday, August 16, 2007 1:19 PM
> >>     To: cxf-user@incubator.apache.org
> >>     <ma...@incubator.apache.org>
> >>     Subject: Re: deployment on eclipse {cxf newbie}
> >>
> >>     You can get it free if you read this article:
> >>     http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-soatp.html
> >>
> >>     Hope it helps.
> >>
> >>
> >>     On 8/16/07, Anne Racel <aracel@cormineid.com
> >>     <ma...@cormineid.com>> wrote:
> >>     >
> >>     > Where can I find the syntax for the eclipse .deploy file?  I
> >>     can't get
> >>     > the system to recognize the servers I have installed, so I
> >>     thought I'd
> >>     > manually add the information.
> >>     >
> >>
> >>
> >>
> >>     --
> >>     Mustafa Egilmezbilek
> >>
> >>
> >>
> >>
> >> --
> >> Mustafa Egilmezbilek
> >>
> > ------------------------------------------------------------------------
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <deployFile:Root xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> > xmlns:deployFile="http://www.eclipse.org/stp/models/deploy/deployfile"
> > name="deploy" description="">
> >>   <package packageFile="wsdl/me.wsdl">
> >>     <targetConfiguration targetServer="Tomcat 5.5.23"/>
> >>   </package>
> >>   <server targetingConfiguration="//@package.0/@targetConfiguration.0"
> > profileName="Tomcat 5.5.23"/>
> >> </deployFile:Root>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Re%3A-java2wsdl--%3E-wsdl2java-lossy--%28newbie-alert%21%29-tf4240919.html#a12194639
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>


-- 
Mustafa Egilmezbilek

RE: deployment on eclipse {cxf newbie}

Posted by Anne Racel <ar...@cormineid.com>.
It looks like my problem was related to a missing SOA plugin file.
Since I was also having problems with the SOA perspective wasn't coming
up as an option any more, I reinstalled the jar files.  That seemed to
fix the last of my problems.  Everything appears to be working smoothly
now.



-----Original Message-----
From: denny_xu [mailto:fugang.xu@iona.com] 
Sent: Friday, August 17, 2007 2:27 AM
To: cxf-user@incubator.apache.org
Subject: RE: deployment on eclipse {cxf newbie}


Hi Anne

.deploy file is a xmi format file which mode is defined by EMF,  so you
want
to find the syntax for type of file you can look at its EMF model file
in
the project
"org.eclipse.stp.soas.deploy.models.deployfile\models\DeployFile.ecore"
in
STP, but we do not suggest to  hand jam the xml - formatted .deploy
file,
there are some constrains for values of the elements in the file, and
you
will get some errors just like  " Could not locate package constructor".

As Mustafa mentioned, for this moment, you should create connection
profiles
for the servers before deployment,  we are trying to refactor the
deployment
framework, for next release of stp you just need to create servers using
wtp
server creation wizard and the server list will be poped up when you try
to
add a target.

For the problem of "Could not locate package constructor", could you
provide
more details?

Thanks
Denny



Anne Racel-2 wrote:
> 
> Thanks, Mustafa, I'm one step closer.....
> 
> Now I'm getting an error about missing packages?
> 
> Could not locate package constructor (2x's)
> 
> And yes, James, I'd be happy to update the wiki as soon as I get this
> working!
> 
> -----Original Message-----
> From: James Mao [mailto:james.mao@iona.com] 
> Sent: Thursday, August 16, 2007 11:48 PM
> To: cxf-user@incubator.apache.org
> Subject: Re: deployment on eclipse {cxf newbie}
> 
> Hi Guys,
> 
> If it works for you, can you guys kindly update the wiki page, 
>
http://cwiki.apache.org/confluence/display/CXF20DOC/CXF+tools+in+Eclipse
> That's quite useful information.
> 
> You can list all the requirement steps, if you feel it's necessary
> 
> Thanks
> James
> 
>> I am sorry I forgot to mention you creating a connection profile for 
>> the servers. In fact that was the point where I struggled 
>> with. File>New>Connection Profiles>Connection Profile and add one 
>> server impl.
>>  
>> In case you need it urgent, I also attached the .deploy file.
>>  
>> On 8/16/07, *Anne Racel* <aracel@cormineid.com 
>> <ma...@cormineid.com>> wrote:
>>
>>     Thanks.  I read it.  I also saw the comment here
>>     ( http://cwiki.apache.org/CXF20DOC/cxf-tools-in-eclipse.html)
that
>>     said
>>     that that tutorial was out of date, so I both read the document
> and
>>     viewed the referenced flash-like movie on the tools page.  In
both
>>     cases, you're to create the Deployment file (File/New/Other/SOA
>>     Tools/Deployment Profile), go to the Configuration tab, then 'Add
>>     Target'.  Unfortunately, when I try to add a target, the list
only
>>     shows
>>     an empty Tomcat folder, even though I've added 2 Tomcat servers
> (mind
>>     you, those servers show up on every other menu that they're
> supposed
>>     to).  I figured it would take me longer to figure out why the
> server
>>     weren't showing up than to hand jam the xml - formatted .deploy
> file.
>>     But I can't find the syntax for the file, so I can't modify it.
>>
>>     -----Original Message-----
>>     From: Mustafa Egilmezbilek [mailto:egilmezbilek@gmail.com
>>     <ma...@gmail.com>]
>>     Sent: Thursday, August 16, 2007 1:19 PM
>>     To: cxf-user@incubator.apache.org
>>     <ma...@incubator.apache.org>
>>     Subject: Re: deployment on eclipse {cxf newbie}
>>
>>     You can get it free if you read this article:
>>     http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-soatp.html
>>
>>     Hope it helps.
>>
>>
>>     On 8/16/07, Anne Racel <aracel@cormineid.com
>>     <ma...@cormineid.com>> wrote:
>>     >
>>     > Where can I find the syntax for the eclipse .deploy file?  I
>>     can't get
>>     > the system to recognize the servers I have installed, so I
>>     thought I'd
>>     > manually add the information.
>>     >
>>
>>
>>
>>     --
>>     Mustafa Egilmezbilek
>>
>>
>>
>>
>> -- 
>> Mustafa Egilmezbilek
>>
>
------------------------------------------------------------------------
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <deployFile:Root xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:deployFile="http://www.eclipse.org/stp/models/deploy/deployfile"
> name="deploy" description="">
>>   <package packageFile="wsdl/me.wsdl">
>>     <targetConfiguration targetServer="Tomcat 5.5.23"/>
>>   </package>
>>   <server
targetingConfiguration="//@package.0/@targetConfiguration.0"
> profileName="Tomcat 5.5.23"/>
>> </deployFile:Root>
>>   
> 
> 

-- 
View this message in context:
http://www.nabble.com/Re%3A-java2wsdl--%3E-wsdl2java-lossy--%28newbie-al
ert%21%29-tf4240919.html#a12194639
Sent from the cxf-user mailing list archive at Nabble.com.


RE: deployment on eclipse {cxf newbie}

Posted by denny_xu <fu...@iona.com>.
Hi Anne

.deploy file is a xmi format file which mode is defined by EMF,  so you want
to find the syntax for type of file you can look at its EMF model file in
the project
"org.eclipse.stp.soas.deploy.models.deployfile\models\DeployFile.ecore" in
STP, but we do not suggest to  hand jam the xml - formatted .deploy file,
there are some constrains for values of the elements in the file, and you
will get some errors just like  " Could not locate package constructor".

As Mustafa mentioned, for this moment, you should create connection profiles
for the servers before deployment,  we are trying to refactor the deployment
framework, for next release of stp you just need to create servers using wtp
server creation wizard and the server list will be poped up when you try to
add a target.

For the problem of "Could not locate package constructor", could you provide
more details?

Thanks
Denny



Anne Racel-2 wrote:
> 
> Thanks, Mustafa, I'm one step closer.....
> 
> Now I'm getting an error about missing packages?
> 
> Could not locate package constructor (2x's)
> 
> And yes, James, I'd be happy to update the wiki as soon as I get this
> working!
> 
> -----Original Message-----
> From: James Mao [mailto:james.mao@iona.com] 
> Sent: Thursday, August 16, 2007 11:48 PM
> To: cxf-user@incubator.apache.org
> Subject: Re: deployment on eclipse {cxf newbie}
> 
> Hi Guys,
> 
> If it works for you, can you guys kindly update the wiki page, 
> http://cwiki.apache.org/confluence/display/CXF20DOC/CXF+tools+in+Eclipse
> That's quite useful information.
> 
> You can list all the requirement steps, if you feel it's necessary
> 
> Thanks
> James
> 
>> I am sorry I forgot to mention you creating a connection profile for 
>> the servers. In fact that was the point where I struggled 
>> with. File>New>Connection Profiles>Connection Profile and add one 
>> server impl.
>>  
>> In case you need it urgent, I also attached the .deploy file.
>>  
>> On 8/16/07, *Anne Racel* <aracel@cormineid.com 
>> <ma...@cormineid.com>> wrote:
>>
>>     Thanks.  I read it.  I also saw the comment here
>>     ( http://cwiki.apache.org/CXF20DOC/cxf-tools-in-eclipse.html) that
>>     said
>>     that that tutorial was out of date, so I both read the document
> and
>>     viewed the referenced flash-like movie on the tools page.  In both
>>     cases, you're to create the Deployment file (File/New/Other/SOA
>>     Tools/Deployment Profile), go to the Configuration tab, then 'Add
>>     Target'.  Unfortunately, when I try to add a target, the list only
>>     shows
>>     an empty Tomcat folder, even though I've added 2 Tomcat servers
> (mind
>>     you, those servers show up on every other menu that they're
> supposed
>>     to).  I figured it would take me longer to figure out why the
> server
>>     weren't showing up than to hand jam the xml - formatted .deploy
> file.
>>     But I can't find the syntax for the file, so I can't modify it.
>>
>>     -----Original Message-----
>>     From: Mustafa Egilmezbilek [mailto:egilmezbilek@gmail.com
>>     <ma...@gmail.com>]
>>     Sent: Thursday, August 16, 2007 1:19 PM
>>     To: cxf-user@incubator.apache.org
>>     <ma...@incubator.apache.org>
>>     Subject: Re: deployment on eclipse {cxf newbie}
>>
>>     You can get it free if you read this article:
>>     http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-soatp.html
>>
>>     Hope it helps.
>>
>>
>>     On 8/16/07, Anne Racel <aracel@cormineid.com
>>     <ma...@cormineid.com>> wrote:
>>     >
>>     > Where can I find the syntax for the eclipse .deploy file?  I
>>     can't get
>>     > the system to recognize the servers I have installed, so I
>>     thought I'd
>>     > manually add the information.
>>     >
>>
>>
>>
>>     --
>>     Mustafa Egilmezbilek
>>
>>
>>
>>
>> -- 
>> Mustafa Egilmezbilek
>>
> ------------------------------------------------------------------------
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <deployFile:Root xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:deployFile="http://www.eclipse.org/stp/models/deploy/deployfile"
> name="deploy" description="">
>>   <package packageFile="wsdl/me.wsdl">
>>     <targetConfiguration targetServer="Tomcat 5.5.23"/>
>>   </package>
>>   <server targetingConfiguration="//@package.0/@targetConfiguration.0"
> profileName="Tomcat 5.5.23"/>
>> </deployFile:Root>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-java2wsdl--%3E-wsdl2java-lossy--%28newbie-alert%21%29-tf4240919.html#a12194639
Sent from the cxf-user mailing list archive at Nabble.com.