axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chathura Herath <chathu...@gmail.com>
Subject Re: [Axis2] - upgrading from [Axis1.3]
Date Thu, 08 Dec 2005 03:56:02 GMT
Doesn't seem right. Pls attach the edited WSDL.
Literal means the type is fully described by schema: Encoded mean the
semantics of encoding applies. If its SOAP encoding then the semantics
of SOAP encoding is used other than xsd type.
Chathura

On 12/7/05, Simon McMahon <simon_mcmahon@health.qld.gov.au> wrote:
> Hi again,
>
> I hacked up my Axis 1.3 generated wsdl and changed all
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:qh" use="encoded"/>
> to
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:qh" use="literal"/>
> based on the WSDL2Java error
>         : java.lang.RuntimeException: The use 'encoded' is not
> supported!
>
> I have no idea what that means but now WSDL2Java runs to completion and
> generates a whole bunch of files.
>
> What is the difference between "encoded" and "literal"?
> Why is all the standard 'databinding' source plugged into my package ?
> Surely this will bloat the size of every web service.
>
> Also, my original Service method:
>         public Provider[] getProvider(String name, String providerId,
> String orgName, String locationId, int maxResults) throws Exception
> became:
>         /**
>          * Auto generated method signatures
>          * @param param68
>          */
>          public org.apache.axis2.om.OMElement getProvider(
> org.apache.axis2.om.OMElement param68) throws java.rmi.RemoteException;
>
> The only bit that stayed the same is the method name. How can the
> stub/skeleton for the same web service be so different?
> Is there more I need to do to the WSDL to make it generate a proper
> interface and skeleton service?
>
> Regards,
>
> Simon.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> simon_mcmahon@health.qld.gov.au 12/07/05 04:29pm >>>
> That would be it - all the samples use "services.xml". The
> documentation
> is correct on this too. Must just have been M2 that got it wrong (or
> just me :).
>
> > Blind guess. Check whether the dir of the aar name is META-INF.
> > "meta-inf" might not work
> > Chathura
>
> This was also correct - "meta-inf" did not work either. It was tough
> to
> get right because WinZip shows all UPPERCASE names in lowercase by
> default.
>
> The Axis2 Exception does not include the "META-INF" part of the name
> that is obviously significant. The documentation looks OK though.
>
> -------------
> Now I get:
>
> This Web axisService has deployment faults
>
> Error: org.apache.axis2.deployment.DeploymentException: null; nested
> exception is: java.lang.ClassCastException at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:216)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:510)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:228)
> at
> ...
>
> Full exception attached.
>
> ----------------
> I have a .wsdl (as generated by Axis 1.3 - attached) so I try to run
> WSDL2Java.
>
> c:> WSDL2Java -uri ProviderService.wsdl -ss -sd -o src2 -p
> au.gov.qld.health.s8online.providerdir
>
> It creates 'src2' (empty) and outputs:
>
> schemaElement = [xsd:schema: null]
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: The use 'encoded' is not supported!
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: The use 'encoded' is not
> supported!
>         at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.foo(XMLBeansExtension.java:334)
>         at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.checkCompat
> ibility(XMLBeansExtension.java:319)
>         at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
>         ... 2 more
>
> Any suggestions?
>
> I already tried the sample which worked OK:
> WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -o
> ..\samples\src -p org.apache.axis2.userguide
>
> Without a Java2WSDL I dont think I can try another approach than using
> the wsdl from Axis 1.3.
>
> Thanks.
>
>
> Simon McMahon
>
> Work: (07) 31311420
> Mobile: (043) 2294180
>
>
> >>> ajith.ranabahu@gmail.com 12/07/05 02:21pm >>>
> try renaming the service.xml with services.xml. This was changed in
> the
> last
> release but I'm afraid it's not provided with enough documentation
>
> On 12/7/05, Chathura Herath <chathurah@gmail.com> wrote:
> >
> > Sorry i didnt notice that you are using M2.
> > Chathura
> >
> > On 12/6/05, Simon McMahon <simon_mcmahon@health.qld.gov.au> wrote:
> > > For some reason I thought M2 was the most recent ???
> > > I have now installed 0.93 so I will try again. I see already that
> I
> > > should let the tools generate the service.xml and not try to write
> it by
> > > hand.
> > >
> > > You obviously have been busy since M2 :-).
> > >
> > > Thanks,
> > >
> > > Simon.
> > >
> > >
> > > Simon McMahon
> > >
> > > Work: (07) 31311420
> > > Mobile: (043) 2294180
> > >
> > >
> > > >>> chinthaka@opensource.lk 12/07/05 11:47am >>>
> > > I think Deepal fixed this in later releases.
> > >
> > > BTW, Simon, we have come a long long way since M2. The latest 0.93
> > > version is much more flexible, stable, feature rich and blah blah
> blah
> > > than M2 (Obviously).
> > >
> > > So please try to play with 0.93 forgetting M2.
> > >
> > > Chathura Herath wrote:
> > >
> > > >Blind guess. Check whether the dir of the aar name is META-INF.
> > > >"meta-inf" might not work
> > > >Chathura
> > > >
> > > >On 12/6/05, Simon McMahon <simon_mcmahon@health.qld.gov.au>
> wrote:
> > > >
> > > >
> > > >>Hi,
> > > >>
> > > >>I have previously been working with 1.3 and have some services
> > > deployed
> > > >>and working OK under that.
> > > >>
> > > >>I just installed Axis2 (axis2-M2-bin build (June 07, 2005)) on
> XP,
> > > >>Tomcat 4.1.31, Java 1.4.2_08.
> > > >>
> > > >>It installed just fine and I got the Axis happiness page as
> > > expected.
> > > >>
> > > >>I have my own service for Axis 1.3 but to install it for 2 I
> need
> a
> > > >>service.xml to complete the .aar
> > > >>It is a pretty simple service and the wsdd is:
> > > >>
> > > >><deployment name="test" xmlns="http://xml.apache.org/axis/wsdd/"
> > > >>    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> > > >>  <service name="qh-providers" provider="java:RPC">
> > > >>    <parameter name="className"
> > > >>value="au.gov.qld.health.s8online.providerdir.ProviderService"/>
> > > >>    <parameter name="allowedMethods" value="*"/>
> > > >>    <parameter name="wsdlServicePort" value="GetProvider"/>
> > > >>  </service>
> > > >></deployment>
> > > >>
> > > >>I just guessed this content for the service.xml:
> > > >><service name="qh-providers">
> > > >>        <description>Provider Search Web Service</description>
> > > >>        <parameter name="ServiceClass"
> > > >>locked="xsd:false">
> > au.gov.qld.health.s8online.providerdir.ProviderService</parameter>
> > > >>        <operation name="GetProvider">
> > > >>                <messageReceiver
> > > >>class="au.gov.qld.health.s8online.providerdir.ProviderService"/>
> > > >>        </operation>
> > > >></service>
> > > >>
> > > >>I put this into the meta-inf directory in the .aar and deployed
> it
> > > to
> > > >>D:\Tomcat\4.1.31\webapps\axis2\WEB-INF\services
> > > >>It found the .aar and my service but came up as a faulty service
> > > with
> > > >>
> > > >>This Web service has deployment faults
> > > >>Error: service.xml not found
> > > >>
> > > >>The service.xml is definitely in the meta-inf of the .aar but
> the
> > > >>content is pretty likely to be wrong. Any suggestions on how I
> can
> > > >>trouble shoot this?
> > > >>
> > > >>Regards,
> > > >>
> > > >>Simon.
> > > >>
> > > >>
> > > >>
> > > >>Simon McMahon
> > > >>
> > > >>Work: (07) 31311420
> > > >>Mobile: (043) 2294180
> > > >>
> > > >>
> > > >>
> > >
> >>*****************************************************************
> > > >>This email, including any attachments sent with it, is
> > > >>confidential and for the sole use of the intended recipient(s).
> > > >>This confidentiality is not waived or lost, if you receive it
> and
> > > >>you are not the intended recipient(s), or if it is transmitted/
> > > >>received in error.
> > > >>
> > > >>Any unauthorised use, alteration, disclosure, distribution or
> > > >>review of this email is strictly prohibited.  The information
> > > >>contained in this email, including any attachment sent with
> > > >>it, may be subject to a statutory duty of confidentiality if it
> > > >>relates to health service matters.
> > > >>
> > > >>If you are not the intended recipient(s), or if you have
> > > >>received this email in error, you are asked to immediately
> > > >>notify the sender by telephone collect on Australia
> > > >>+61 1800 198 175 or by return email.  You should also
> > > >>delete this email, and any copies, from your computer
> > > >>system network and destroy any hard copies produced.
> > > >>
> > > >>If not an intended recipient of this email, you must not copy,
> > > >>distribute or take any action(s) that relies on it; any form of
> > > >>disclosure, modification, distribution and/or publication of
> this
> > > >>email is also prohibited.
> > > >>
> > > >>Although Queensland Health takes all reasonable steps to
> > > >>ensure this email does not contain malicious software,
> > > >>Queensland Health does not accept responsibility for the
> > > >>consequences if any person's computer inadvertently suffers
> > > >>any disruption to services, loss of information, harm or is
> > > >>infected with a virus, other malicious computer programme or
> > > >>code that may occur as a consequence of receiving this
> > > >>email.
> > > >>
> > > >>Unless stated otherwise, this email represents only the views
> > > >>of the sender and not the views of the Queensland Government.
> > > >>****************************************************************
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > >--
> > > >Chathura Herath
> > > >http://www.bloglines.com/blog/chathurah
> > > >
> > > >
> > > >
> > >
> > >
> > > *****************************************************************
> > > This email, including any attachments sent with it, is
> > > confidential and for the sole use of the intended recipient(s).
> > > This confidentiality is not waived or lost, if you receive it and
> > > you are not the intended recipient(s), or if it is transmitted/
> > > received in error.
> > >
> > > Any unauthorised use, alteration, disclosure, distribution or
> > > review of this email is strictly prohibited.  The information
> > > contained in this email, including any attachment sent with
> > > it, may be subject to a statutory duty of confidentiality if it
> > > relates to health service matters.
> > >
> > > If you are not the intended recipient(s), or if you have
> > > received this email in error, you are asked to immediately
> > > notify the sender by telephone collect on Australia
> > > +61 1800 198 175 or by return email.  You should also
> > > delete this email, and any copies, from your computer
> > > system network and destroy any hard copies produced.
> > >
> > > If not an intended recipient of this email, you must not copy,
> > > distribute or take any action(s) that relies on it; any form of
> > > disclosure, modification, distribution and/or publication of this
> > > email is also prohibited.
> > >
> > > Although Queensland Health takes all reasonable steps to
> > > ensure this email does not contain malicious software,
> > > Queensland Health does not accept responsibility for the
> > > consequences if any person's computer inadvertently suffers
> > > any disruption to services, loss of information, harm or is
> > > infected with a virus, other malicious computer programme or
> > > code that may occur as a consequence of receiving this
> > > email.
> > >
> > > Unless stated otherwise, this email represents only the views
> > > of the sender and not the views of the Queensland Government.
> > > ****************************************************************
> > >
> > >
> >
> >
> > --
> > Chathura Herath
> > http://www.bloglines.com/blog/chathurah
> >
>
>
>
> --
> Ajith Ranabahu
>


--
Chathura Herath
http://www.bloglines.com/blog/chathurah

Mime
View raw message