Re: Unexpected Subelement Error??? Help Please

2008-03-29 Thread Amila Suriarachchi
use tcpmon[1] to look at the request and response. then check whether your
response
match with the WSDL file.

thanks,
Amila.


[1]http://ws.apache.org/commons/tcpmon/

2008/3/28 Ken Ferguson <[EMAIL PROTECTED]>:

>
> That error is usually caused by you returning XML that doesn't match the
> schema.  With me it's almost always caused by a missing XML element where
> one is required.
>
> HTH
>
> Ken
>
>
> On 28/03/2008, Umut DOĞAN <[EMAIL PROTECTED]> wrote:
> >
> >  Hello;
> > Error is like that...
> >
> > - An error occured while creating stub!
> >
> > [
> > *java*] org.apache.axis2.AxisFault: *
> > org.apache.axis2.databinding.ADBException*: Unexpected subelement
> > timeCode
> >
> > [
> > *java*] at org.apache.axis2.AxisFault.makeFault(*AxisFault.java:417*)
> >
> > [
> > *java*] at com.cyangate.ffmpeg.client.FFmpegServiceStub.fromOM(*
> > FFmpegServiceStub.java:621*)
> >
> > [
> > *java*] at
> > com.cyangate.ffmpeg.client.FFmpegServiceStub.getVideoKeyframes(*
> > FFmpegServiceStub.java:269*)
> >
> > [
> > *java*] at
> > com.cyangate.ffmpeg.client.FFmpegServiceHandler.callGetVideoKeyFrames(*
> > FFmpegServiceHandler.java:65*)
> >
> > [
> > *java*] at com.cyangate.ffmpeg.client.FFmpegClient.main(*
> > FFmpegClient.java:266*)
> >
> > [
> > *java*] at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
> >
> >
> > [
> > *java*] at sun.reflect.NativeMethodAccessorImpl.invoke(*
> > NativeMethodAccessorImpl.java:39*)
> >
> > [
> > *java*] at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
> > DelegatingMethodAccessorImpl.java:25*)
> >
> > [
> > *java*] at java.lang.reflect.Method.invoke(*Method.java:597*)
> >
> > [
> > *java*] at org.apache.tools.ant.taskdefs.ExecuteJava.run(*
> > ExecuteJava.java:217*)
> >
> > [
> > *java*] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(*
> > ExecuteJava.java:152*)
> >
> > [
> > *java*] at org.apache.tools.ant.taskdefs.Java.run(*Java.java:747*)
> >
> > [
> > *java*] at org.apache.tools.ant.taskdefs.Java.executeJava(*Java.java:201
> > *)
> >
> > [
> > *java*] at org.apache.tools.ant.taskdefs.Java.execute(*Java.java:104*)
> >
> > [
> > *java*] at org.apache.tools.ant.UnknownElement.execute(*
> > UnknownElement.java:288*)
> >
> > [
> > *java*] at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
> >
> >
> > [
> > *java*] at sun.reflect.NativeMethodAccessorImpl.invoke(*
> > NativeMethodAccessorImpl.java:39*)
> >
> > [
> > *java*] at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
> > DelegatingMethodAccessorImpl.java:25*)
> >
> > [
> > *java*] at java.lang.reflect.Method.invoke(*Method.java:597*)
> >
> > [
> > *java*] at org.apache.tools.ant.dispatch.DispatchUtils.execute(*
> > DispatchUtils.java:105*)
> >
> > [
> > *java*] at org.apache.tools.ant.Task.perform(*Task.java:348*)
> >
> > [
> > *java*] at org.apache.tools.ant.Target.execute(*Target.java:357*)
> >
> > [
> > *java*] at org.apache.tools.ant.Target.performTasks(*Target.java:385*)
> >
> > [
> > *java*] at org.apache.tools.ant.Project.executeSortedTargets(*
> > Project.java:1329*)
> >
> > [
> > *java*] at org.apache.tools.ant.Project.executeTarget(*Project.java:1298
> > *)
> >
> > [
> > *java*] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(*
> > DefaultExecutor.java:41*)
> >
> > [
> > *java*] at
> > org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets
> > (*EclipseDefaultExecutor.java:32*)
> >
> > [
> > *java*] at org.apache.tools.ant.Project.executeTargets(*Project.java
> > :1181*)
> >
> > [
> > *java*] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(
> > *InternalAntRunner.java:423*)
> >
> > [
> > *java*] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main
> > (*InternalAntRunner.java:137*)
> >
> > [
> > *java*] Caused by: *java.lang.Exception*: *
> > org.apache.axis2.databinding.ADBException*: Unexpected subelement
> > timeCode
> >
> > [
> > *java*] at
> > com.cyangate.ffmpeg.client.FFmpegServiceStub$GetVideoKeyframesResponse$Factory.parse
> > (*FFmpegServiceStub.java:3716*)
> >
> > [
> > *java*] at com.cyangate.ffmpeg.client.FFmpegServiceStub.fromOM(*
> > FFmpegServiceStub.java:608*)
> >
> > [
> > *java*] ... 28 more
> >
> > [
> > *java*] Caused by: *org.apache.axis2.databinding.ADBException*:
> > Unexpected subelement timeCode
> >
> > [
> > *java*] at
> > com.cyangate.ffmpeg.client.FFmpegServiceStub$GetVideoKeyframesResponse$Factory.parse
> > (*FFmpegServiceStub.java:3712*)
> >
> > [
> > *java*] ... 29 more
> > It gives error at here:
> >
> > KeyframeData[] keyframeOutput =
> > ffmpegServiceHandler.callGetVideoKeyFrames(
> >
> > outputDir + File.
> > *separator* + outputFileName, keyframeParameters, outputFrames);
> >
> > *_logger*.debug("Keyframe extraction completed.");
> >
> >
> >
> > KeyframeData class is here:
> > *
> >
> > package
> > * com.cyangate.ffmpeg.services;
> >
> > *
> >
> > public
> > * *class* KeyframeData {
> >
> > *private* String timeCode;
> >
> > *private* *byte*[] imageData;
> >
> > *public* String

Re: Generating Stubs

2008-03-29 Thread Amila Suriarachchi
here your have not attached the schema. or the part you referring?

thanks,
Amila.

On Sat, Mar 29, 2008 at 3:14 AM, <[EMAIL PROTECTED]> wrote:

> I'm too new to Axis to explain why this happens, but I can tell you that
> this is the intended behavior and that both files are needed. Basically
> one
> is an "inner" bean that lets you get and set the parameters for that
> operation. The other is an "outer" bean that lets you get and set the
> inner
> bean. (I rename the outer one something like "loginRequestWrapper" to make
> it less confusing for me, although that gets lost whenever the WSDL
> changes
> and I have to regenerate code).
>
> Experienced Axis folks: please set me straight on that if I've got it
> wrong
> or explain it in more depth - thanks.
>
> __
> Steve Gruverman
> IntelliCare, Inc. | A Medco Health Solutions Company
>
>
> O Aiken <[EMAIL PROTECTED]> wrote on 03/27/2008 05:47:50 PM:
>
> >
> > Hi,
> >
> > When generating stubs with Axis2 1.3  -- some of the class files are
> > generated twice, once with a number appended.
> >
> > ie. this wsdl snippit :
> >
> > ==
> > 
> >  
> >  
> > ==
> >
> > will result in 2 classes :
> >
> > LoginRequest.java
> > LoginRequest15.java
> >
> >
> > Does anybody know why ?
> >
> > thank you & regards,
> >
> > -O Aiken
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


multiple wsdls for one service

2008-03-29 Thread nipa dadbhawala
Hi,

I have a set of wsdls files. Now I want to create only one service which
exposes all the operations from all the wsdls. How can I achieve this?
Should I create one wsl file which imports all other wsdl files?

Thanks,
Nipa


Re: Using rampart policy for basic authentication

2008-03-29 Thread jason zhang




Hi, Martin
The BasicPolicy is not what I am looking for. In your example, the
AlgorithmSuite is Basic128Rsa15. It is inside a SymmetricBinding.
Symmetric binding implies that the message is encrypted using a
symmetric algorithm. 

I just want username and password passed to server in Soap header as is
defined in Web Services Security UsernameToken Profile 1.0.  The
message is clear http message. 

thanks

-jason




Martin Gainty wrote: 

  you can define a BasicPolicy in your services.xml an example is:

"http://schemas.xmlsoap.org/ws/2004/09/policy">
"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

   

   
  
   


Is this what you're looking for?
Martin-
- Original Message -
From: "jason zhang" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, March 29, 2008 6:07 AM
Subject: Using rampart policy for basic authentication


  
  
Hi, All
Is it possible to implement the rampart sample/basic/sample02 with
policy?  What I want to do just basic username/password authentication
with policy. All the examples in  policy directory involve encryption or
signature.

If it is possible, how can I find out in my business method who the
authenticated user is?  For example, the Servlet API has a method
HttpServletRequest.getRemoteUser(). Is such a similar API in rampart?

Thanks

-jason


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  
  

  





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize

2008-03-29 Thread Anne Thomas Manes
Given that you must send a specific XML document, I recommend that you
use the WSDL-first approach rather than the code-first approach. As I
said in my previous post, you should start by defining a schema that
describes your input and output elements and then construct a WSDL
that defines an operation for sending and receiving those elements. An
example follows. A couple of notes on the WSDL I developed for you:

1) I have defined a set of wrapper elements around your
 and  elements. SOAP requires that the
element within the SOAP Body be namespace qualified. Your
 and  elements are not qualified;
therefore you should wrap them in a namespace qualified element. The
wrapper elements are called "searchTest" and "searchTestResponse" to
correspond to the operation name. This WSDL conforms to the "wrapped"
document/literal convention, so Axis will automatically strip off the
wrapper elements for you.

2) You didn't give me the complete details for your response element.
If the  element contains child elements, then you will
need to redefine the schema for that element.

Once you have finalized the WSDL, run wsdl2java with the -s option to
generate your client stub and server skeleton. It will also generate a
WSDD for you.

Anne


http://schemas.xmlsoap.org/wsdl/";
xmlns:tns="urn:TestSearchEngine"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>


 

  

  

  

  

  

  

  

  

  

  
  

  
  

  
  

  
  

  
  
  

  

  

  

  

 



  



  



 


 
  


   http://schemas.xmlsoap.org/soap/http"/>
   
  
  
 
  
  
 
  
   



 
http://localhost:8080/axis/services/wsTestsearchdetails"/>
 
  


Anne

On Sat, Mar 29, 2008 at 10:20 AM, sh_santosh <[EMAIL PROTECTED]> wrote:
>
>  Hi Anne,
>
>  Yes, i need to implement both client and server. as a input SOAP
>  request inside SOAP body payload containing the
>   element.
>
>   Yes, i have a sample document for the response message also.
>  
>
>   -- some Strings
>
>  
>
>   Now, I am searching for How to Generate java2wsdl   and  wsdl2java any
>  tool or command that will able to work wiith Axis 1.3, tomcat 5.5.20. and
>  java.
>
>  There is not a single proper practical example given on Internet for
>  Documnet litetal web services with Axis.
>
>  Have look into this practically described example to RPC encoded with Axis .
>  This very helpful.
>  http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2
>
>  I am searching Same type of example for Documnet litetal web services with
>  Axis.
>
>  Please provide java2wsdl   and  wsdl2java Tool and Command for Documnet
>  litetal web services with Axis.
>  any reference, any tutorial, ??
>
>
>  Anne, Thank you very much for your reply.
>
>
>
>
>  Regards
>  Santosh
>
>
>
>
>
>  Anne Thomas Manes wrote:
>  >
>  > Santosh,
>  >
>  > Do I understand your problem correctly: You need to implement both
>  > client and server, and you must pass a payload containing the
>  >  element.
>  >
>  > If so, you must start by defining the schema for the 
>  > element. Then you should construct a document/literal WSDL that
>  > defines an operation for passing in the  element. Do
>  > you also have a sample document for the response message? You will
>  > also have to define the schema for the response document.
>  >
>  > Anne
>  >
>  > On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh <[EMAIL PROTECTED]>
>  > wrote:
>  >>
>  >>  Hi Anne ,
>  >>
>  >>   1st of all Thank you very much for your Reply.
>  >>  I was just going through Blogs written by you and earlier post that you
>  >>  replied for others.
>  >>
>  >>Yes, it is clear that server required SOAP request is not sent by
>  >> client
>  >>  or requester program.
>  >>  Some difference in SOAP msg. so i got exception. but
>  >>
>  >> I have No Choice, i have to use that SOAP request only send by
>  >> requester
>  >>  program.
>  >>  Now in this situation what change i have to do in my WSDL or wsdd or
>  >> code.
>  >>
>  >> is it possible that we made some change in WSDL or wsdd. so that i am
>  >>  able to Accept SOAP request and process it further.  Give some idea
>  >>  regarding this issues keeping it that i have to use that SOAP request
>  >> only.
>  >>
>  >>Please see the SOAP request  send by Requester or client program
>  >> :-
>  >>
>  >>
>  >>  Content-Type: text/xml; charset=utf-8
>  >>  SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest";
>  >>
>  >>
>  >>  
>  >>  http://schemas.xmlsoap.org/soap/envelope/";
>  >>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  >>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>  >>   
>  >> 
>  >> 
>  >> 2008-09-09
>  >>  

Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize

2008-03-29 Thread sh_santosh

Hi Anne,

 Yes, i need to implement both client and server. as a input SOAP
request inside SOAP body payload containing the
 element.
 
  Yes, i have a sample document for the response message also.

   
  -- some Strings
   


  Now, I am searching for How to Generate java2wsdl   and  wsdl2java any
tool or command that will able to work wiith Axis 1.3, tomcat 5.5.20. and
java. 

There is not a single proper practical example given on Internet for
Documnet litetal web services with Axis.

Have look into this practically described example to RPC encoded with Axis .
This very helpful.
http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2

I am searching Same type of example for Documnet litetal web services with
Axis.

Please provide java2wsdl   and  wsdl2java Tool and Command for Documnet
litetal web services with Axis.
any reference, any tutorial, ??


Anne, Thank you very much for your reply.


Regards
Santosh





Anne Thomas Manes wrote:
> 
> Santosh,
> 
> Do I understand your problem correctly: You need to implement both
> client and server, and you must pass a payload containing the
>  element.
> 
> If so, you must start by defining the schema for the 
> element. Then you should construct a document/literal WSDL that
> defines an operation for passing in the  element. Do
> you also have a sample document for the response message? You will
> also have to define the schema for the response document.
> 
> Anne
> 
> On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh <[EMAIL PROTECTED]>
> wrote:
>>
>>  Hi Anne ,
>>
>>   1st of all Thank you very much for your Reply.
>>  I was just going through Blogs written by you and earlier post that you
>>  replied for others.
>>
>>Yes, it is clear that server required SOAP request is not sent by
>> client
>>  or requester program.
>>  Some difference in SOAP msg. so i got exception. but
>>
>> I have No Choice, i have to use that SOAP request only send by
>> requester
>>  program.
>>  Now in this situation what change i have to do in my WSDL or wsdd or
>> code.
>>
>> is it possible that we made some change in WSDL or wsdd. so that i am
>>  able to Accept SOAP request and process it further.  Give some idea
>>  regarding this issues keeping it that i have to use that SOAP request
>> only.
>>
>>Please see the SOAP request  send by Requester or client program 
>> :-
>>
>>
>>  Content-Type: text/xml; charset=utf-8
>>  SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest";
>>
>>
>>  
>>  http://schemas.xmlsoap.org/soap/envelope/";
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>>   
>> 
>> 
>> 2008-09-09
>> London
>> 
>> 
>> Santosh
>> 25
>> London
>> 
>> 
>>   
>>  
>>
>>  =x
>>
>>
>>  Regards
>>  Santosh
>>
>>
>>
>>
>>  Anne Thomas Manes wrote:
>>  >
>>  > The message you are sending doesn't match the expected input specified
>>  > by the WSDL.
>>  > The service is expecting something lie this:
>>  >
>>  > 
>>  > http://schemas.xmlsoap.org/soap/envelope/";
>>  > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>  > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>>  > xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";>
>>  > http://schemas.xmlsoap.org/soap/encoding/";>
>>  >   
>>  >   some string
>>  >   
>>  > 
>>  > 
>>  >
>>  > Anne
>>  >
>>  >
>>  >
>>  > On Wed, Mar 26, 2008 at 3:23 AM, sh_santosh <[EMAIL PROTECTED]>
>>  > wrote:
>>  >>
>>  >>  Dear All,
>>  >>
>>  >>I have installed Axis 1.3 (Java) and provided a service to
>>  >>  Requester(other end). At my end when i invoking web service by
>> passing
>>  >>  XmlRequest as string from java client program then it returns proper
>>  >>  Response xml. but
>>  >>
>>  >>The Service Requester(other end) invoking our web services
>> using
>>  >>  WFETCH tool. They send SOAP request then from Service Provider
>> end(my
>>  >> end)
>>  >>  returns the soapenv:Server.userException - SimpleDeserializer
>>  >> encountered a
>>  >>  child element, which is NOT expected, in something it was trying to
>>  >>  deserialize.
>>  >>
>>  >>  Please see  below the SOAP Request, Exception / Error and WSDL file.
>>  >>
>>  >>Requester send SOAP request is :-
>>  >>
>>  >>  Content-Type: text/xml; charset=utf-8
>>  >>  SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest";
>>  >>
>>  >>  
>>  >>  > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
>>  >>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>  >>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>>  >>   
>>  >> 
>>  >> 
>>  >> 2008-09-09
>>  >> London
>>  >> 
>>  >> 
>>  >> 

RE: Message Level Security

2008-03-29 Thread shams jawaid

Hi Nandana & Arlindo, 
 
Thankyou very much for clearing that up! Much appreciated!> Date: Sat, 29 Mar 
2008 17:56:02 +0530> From: [EMAIL PROTECTED]> To: axis-user@ws.apache.org> 
Subject: Re: Message Level Security> > Hi Shams,> > > surely rampart is message 
level security... end to end security...> > transport level security is like 
TLS/SSL,,, point to point security...> > Adding some points ...> > Rampart can 
be used with Transport level security ( where the messages> are actually 
protected by the transport ) and Rampart validates> whether the message arrived 
through a secure a transport. For example> take Username token over HTTPS 
scenario. Here the message protection> is transport level security and Rampart 
provides the authentication.> Rampart also validates incoming transport to 
check whether it is> "https".> > When Rampart signs and encrypts messages or 
parts of the messages as> in your scenario, it is message level security. You 
will find this [1]> comparison useful.> > thanks,> /nandana> > [1] - 
http://xyzws.com/kbdatabase/TLevel_vs_MLevel_Security.html> > 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL 
PROTECTED]> 
_
The next generation of Windows Live is here
http://www.windowslive.co.uk/get-live

Re: soapenv:Server.userException - SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize

2008-03-29 Thread Anne Thomas Manes
Santosh,

Do I understand your problem correctly: You need to implement both
client and server, and you must pass a payload containing the
 element.

If so, you must start by defining the schema for the 
element. Then you should construct a document/literal WSDL that
defines an operation for passing in the  element. Do
you also have a sample document for the response message? You will
also have to define the schema for the response document.

Anne

On Wed, Mar 26, 2008 at 10:23 AM, sh_santosh <[EMAIL PROTECTED]> wrote:
>
>  Hi Anne ,
>
>   1st of all Thank you very much for your Reply.
>  I was just going through Blogs written by you and earlier post that you
>  replied for others.
>
>Yes, it is clear that server required SOAP request is not sent by client
>  or requester program.
>  Some difference in SOAP msg. so i got exception. but
>
> I have No Choice, i have to use that SOAP request only send by requester
>  program.
>  Now in this situation what change i have to do in my WSDL or wsdd or code.
>
> is it possible that we made some change in WSDL or wsdd. so that i am
>  able to Accept SOAP request and process it further.  Give some idea
>  regarding this issues keeping it that i have to use that SOAP request only.
>
>Please see the SOAP request  send by Requester or client program  :-
>
>
>  Content-Type: text/xml; charset=utf-8
>  SOAPAction: "http://www.test.com/UTSv/2004/01/01/SearchTest";
>
>
>  
>  http://schemas.xmlsoap.org/soap/envelope/";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>   
> 
> 
> 2008-09-09
> London
> 
> 
> Santosh
> 25
> London
> 
> 
>   
>  
>
>  =x
>
>
>  Regards
>  Santosh
>
>
>
>
>  Anne Thomas Manes wrote:
>  >
>  > The message you are sending doesn't match the expected input specified
>  > by the WSDL.
>  > The service is expecting something lie this:
>  >
>  > 
>  > http://schemas.xmlsoap.org/soap/envelope/";
>  > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>  > xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";>
>  > http://schemas.xmlsoap.org/soap/encoding/";>
>  >   
>  >   some string
>  >   
>  > 
>  > 
>  >
>  > Anne
>  >
>  >
>  >
>  > On Wed, Mar 26, 2008 at 3:23 AM, sh_santosh <[EMAIL PROTECTED]>
>  > wrote:
>  >>
>  >>  Dear All,
>  >>
>  >>I have installed Axis 1.3 (Java) and provided a service to
>  >>  Requester(other end). At my end when i invoking web service by passing
>  >>  XmlRequest as string from java client program then it returns proper
>  >>  Response xml. but
>  >>
>  >>The Service Requester(other end) invoking our web services using
>  >>  WFETCH tool. They send SOAP request then from Service Provider end(my
>  >> end)
>  >>  returns the soapenv:Server.userException - SimpleDeserializer
>  >> encountered a
>  >>  child element, which is NOT expected, in something it was trying to
>  >>  deserialize.
>  >>
>  >>  Please see  below the SOAP Request, Exception / Error and WSDL file.
>  >>
>  >>Requester send SOAP request is :-
>  >>
>  >>  Content-Type: text/xml; charset=utf-8
>  >>  SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest";
>  >>
>  >>  
>  >>  http://schemas.xmlsoap.org/soap/envelope/";
>  >>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  >>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>  >>   
>  >> 
>  >> 
>  >> 2008-09-09
>  >> London
>  >> 
>  >> 
>  >> Santosh
>  >> 25
>  >> London
>  >> 
>  >> 
>  >>   
>  >>  
>  >>
>  >>  =x
>  >>
>  >> Provider end return Exception / Error is :-
>  >>
>  >>  
>  >>>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>  >> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>  >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  >> 
>  >> 
>  >>
>  >> soapenv:Server.userException
>  >> org.xml.sax.SAXException:
>  >> SimpleDeserializer encountered a
>  >>  child element, which is NOT expected, in something it was trying to
>  >>  deserialize.
>  >> 
>  >>   >>
>  >> xmlns:ns1="http://xml.apache.org/axis/";>xmlapps.testgo1.com
>  >> 
>  >> 
>  >> 
>  >>  
>  >>
>  >>  ===x
>  >>
>  >> WSDL file is :-
>  >>
>  >>  
>  >>>>  xmlns="http://schemas.xmlsoap.org/wsdl/";
>  >>  xmlns:apachesoap="http://xml.apache.org/xml-soap";
>  >>  xmlns:impl="urn:Test

Re: [Axis2] migration from Axis1

2008-03-29 Thread Anne Thomas Manes
If you want to keep the WSDL the same, then I suggest you use the
WSDL-first approach rather than the POJO approach. Take the WSDL from
your Axis 1.4 service and use WSDL2Java to generate a new service
skeleton.

Anne

On Fri, Mar 28, 2008 at 5:47 AM, Thomas Burdairon
<[EMAIL PROTECTED]> wrote:
> Greatings
>  I'm working on a migration from Axis1.4 to Axis2 1.3.
>  We choosed to use the POJO approach since it seems to be the easiest
>  one. That means I don't generate my WSDL, they are autogenerated by
>  axis.
>  I am currently encountering 2 major problems.
>  - Beans presents in WSDL
>  Some of our services return different objects depending of the
>  parameters. To do so, we have a simple inheritance schema that look
>  like :
>  interface A
>  object B implements Aobject C implement A...
>  All the methods in the service return A, so by default the generated
>  WSDL only contains the definition of A.
>  In Axis1, there an extraClasses parameter in the WSDL that we were
>  using to declare objects B and C.I couldn't find an equivalent in
>  Axis2 (in the service.xml).I've read http://issues.apache.org/jira/
>  browse/AXIS2-1056, but it seem to fix only java2wsdl and this isn't
>  what I am looking for.Is there any way for it?or, in your opinion,
>  would a patch be easy to write?
>
>
>  - Beans description in WSDL for List :Some of the javabeans sent or
>  received by our webservices contains List
>  One nice feature in axis1 was that java.util.List were converted in
>  the WSDL as type="impl:ArrayOf_xsd_anyType"Now, it looks like
>  type="xs:anyType"
>  i tried to convert some of them ito arrays, just to see and i get
>  maxOccurs="unbounded" minOccurs="0" seems weird since it is not
>  explicitly said it is an array, but why not ...
>  problem is i used to use List as type and it's strangely
>  deserialized.is Number type supported by Axis2?is there an official
>  list of supported java types ?
>
>  thanks for your time and your answers
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using SWA with ADB in axis2

2008-03-29 Thread Anne Thomas Manes
Thilina,

The WS-I Attachments Profile [1] defines the standard WSDL description for SwA.

[1] http://www.ws-i.org/Profiles/AttachmentsProfile-1.0.html

Anne

On Fri, Mar 28, 2008 at 10:39 AM, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> Hi,
>  You cannot generate WSDL with the knowledge of SwA in them.. AFAIK
>  there isn't a standard way to mention SwA attachments in WSDL.. ADB
>  does not support SwA directly..
>
>  What you can do in the server side is to have your method signature
>  take in an String which will be the content-id of the attachment, then
>  retrieve your attachment from the messageContext manually using it...
>  Have a look at [1] & [2]..
>
>  Your following method will result in an MTOM WSDL, where dataHandler
>  will get bound to an base64Binary element.
>
>
>  >  addContentFile(String userID, String password,
>  > String serviceID, DataHandler dataHandler,
>  > String relAddFilepathName, String contentType, 
> String source)
>
>  thanks,
>  Thilina
>
>  [1] Using SOAP with Attachments in Apache Axis2 - 
> http://wso2.org/library/1148
>  [2] Downloading a Binary File from a Web Service using Axis2 and SOAP
>  with Attachments - http://wso2.org/library/1675
>
>
>  >
>  >  How do I write a wsdl for it so I can generate the client and server using
>  >  ADB.
>  >
>  >
>  >
>
> >  Thanks
>  >  --
>  >  View this message in context: 
> http://www.nabble.com/Using-SWA-with-ADB-in-axis2-tp16335414p16335414.html
>  >  Sent from the Axis - User mailing list archive at Nabble.com.
>  >
>  >
>  >  -
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>
>  --
>  Thilina Gunarathne - http://thilinag.blogspot.com
>
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to create Document / Literal java2WSDL with axis 1.3

2008-03-29 Thread Anne Thomas Manes
Specify -y wrapped rather than -y document. That will produce a
"wrapped" document/literal service, and it will automatically generate
the beanmappings for you.

Anne

On Fri, Mar 28, 2008 at 11:24 AM, sh_santosh <[EMAIL PROTECTED]> wrote:
>
>
>
>  can anybody provide working command like this for
>
>  JAVA2WSDL :
>  java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -u literal -T
>  1.2 -n NS.TestService
>  -y document -o DocLit.wsdl TestService
>
>  WSDL2JAVA :
>  java org.apache.axis.wsdl.WSDL2Java -s -a -p service.doc.literal  -T 1.2 -o
>  src DocLit.wsdl
>
>  When i run java2wsdl it's throwing exception -
>  faultString: Please register a typemapping/beanmapping for
>
>  I have made some changes in server-config.wsdd like -
>xmlns:ns="urn:webservices.wsdoclittest.test.Stock"
>  languageSpecificType="java:webservices.wsdoclittest.test.Stock"/>
>
>  but it's not working.
>
>  please help me out.
>
>
>
>
>  Upul Godage wrote:
>  >
>  > You can use Axis2 tools in the bin directory java2wsdl, wsdl2java like
>  > this.
>  > java2wsdl generates document literal style WSDLs I think.
>  >
>  > ./java2wsdl.sh -cn test.Service -cp classes.jar
>  >
>  > ./wsdljava.sh -uri service.wsdl
>  >
>  > Upul
>  >
>  > On Thu, Mar 27, 2008 at 12:55 PM, sh_santosh <[EMAIL PROTECTED]>
>  > wrote:
>  >
>  >>
>  >> Dear All,
>  >>
>  >>
>  >>  1. How to create Document / Literal WSDL from java interface ?? or how
>  >> to
>  >> create Java 2 WSDL using Document/ Literal.
>  >>  2. from document/literal WSDL to java classes(stub, skelton, serivces).
>  >>
>  >> I am using Axis 1.3 , tomcat-5.5.20 and eclipse.
>  >>
>  >> Please provide the command and arguments for java2wsdl and wsdl2java for
>  >> doc/lit.
>  >>
>  >> is there any tool that help to generate java2wsdl and wsdl2java for
>  >> doc/lit.
>  >>
>  >>
>  >>
>  >>
>  >> Regards
>  >> Santosh
>  >>
>  >>
>  >>
>  >>
>  >>
>  >>
>  >>
>  >> --
>  >> View this message in context:
>  >> 
> http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16323309.html
>  >> Sent from the Axis - User mailing list archive at Nabble.com.
>  >>
>  >>
>  >> -
>  >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >> For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16351022.html
>  Sent from the Axis - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using rampart policy for basic authentication

2008-03-29 Thread Martin Gainty
you can define a BasicPolicy in your services.xml an example is:

http://schemas.xmlsoap.org/ws/2004/09/policy";>
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

   

   
  
   


Is this what you're looking for?
Martin-
- Original Message -
From: "jason zhang" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, March 29, 2008 6:07 AM
Subject: Using rampart policy for basic authentication


> Hi, All
> Is it possible to implement the rampart sample/basic/sample02 with
> policy?  What I want to do just basic username/password authentication
> with policy. All the examples in  policy directory involve encryption or
> signature.
>
> If it is possible, how can I find out in my business method who the
> authenticated user is?  For example, the Servlet API has a method
> HttpServletRequest.getRemoteUser(). Is such a similar API in rampart?
>
> Thanks
>
> -jason
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it wise to deploy a service as a POJO with Axis2?

2008-03-29 Thread Anne Thomas Manes
For best results, your POJO should avoid using Java Collections.

Anne

On Fri, Mar 28, 2008 at 6:59 PM, Nate Roe <[EMAIL PROTECTED]> wrote:
>
>  I wonder this in part because of the issue that I reported 
> (https://issues.apache.org/jira/browse/AXIS2-3655, where a service returning 
> a List fails to generate appropriate WSDL.)  My attempts to correct 
> the WSDL and then regenerate the client resulted in other 
> difficult-to-diagnose (for me) problems.
>
>  So I wonder if this is a common approach?  Have I chosen a rough road?
>
>  Thanks,
>  Nate Roe
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setting up SecureConversation

2008-03-29 Thread mikle

I would like to use Ws-Secureconversation to sign messages (I will be using
one-way SSL to encrypt)

I am using WSO2 WSAS and have setup a security configuration for my service
(this is a wizard that defines the service's policy) and keystore in the
WSAS management console.. but i can't figure out the next step..

According to this Axis2 book that I am using, the policies need to be added
to the WSDL so that the axis2 codegen will include the policy information in
the generated code...however the book does not cover secure conversation.

I also noticed that in the example...a policyreference was added to the
operation - does this apply in this case?

Can someone point me to a good guide or give me some pointers on what needs
to be done?

Do I need to make any changes to my WSDL? maybe a reference to the Policy
doc generated by WSAS?

Thanks,

Michael
-- 
View this message in context: 
http://www.nabble.com/Setting-up-SecureConversation-tp16369657p16369657.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Message Level Security

2008-03-29 Thread Nandana Mihindukulasooriya
Hi Shams,

>  surely rampart is message level security... end to end security...
>  transport level security is like TLS/SSL,,, point to point security...

Adding some points ...

Rampart can be used with Transport level security ( where the messages
are actually protected by the transport ) and Rampart validates
whether the message arrived through a secure a transport. For example
take Username token over HTTPS scenario. Here the message protection
is transport level security and Rampart provides the authentication.
Rampart also validates incoming transport to check whether it is
"https".

When Rampart signs and encrypts messages or parts of the messages as
in your scenario, it is message level security. You will find this [1]
comparison useful.

thanks,
/nandana

[1] - http://xyzws.com/kbdatabase/TLevel_vs_MLevel_Security.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using rampart policy for basic authentication

2008-03-29 Thread jason zhang

Hi, All
Is it possible to implement the rampart sample/basic/sample02 with 
policy?  What I want to do just basic username/password authentication 
with policy. All the examples in  policy directory involve encryption or 
signature.


If it is possible, how can I find out in my business method who the 
authenticated user is?  For example, the Servlet API has a method 
HttpServletRequest.getRemoteUser(). Is such a similar API in rampart?


Thanks

-jason


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]