You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Johnson, Eric" <Er...@iona.com> on 2008/05/23 17:21:55 UTC

wsdl2js question

What does the -p wsdlNamespace=jsPrefix option do? What is the syntax
used to specify the jsPrefix?    
 
Thanks,
Eric

Re: wsdl2js question

Posted by Benson Margulies <bi...@gmail.com>.
I just checked in the removal of -client and the fix to make -p work.

Except that I made -p do the wrong thing. It sets up the on-the-wire
prefixes, which is not very useful, instead of the code prefixes.

I now remember why I didn't make -p work right to begin with: I had a plan
for a fairly general approach to this sort of thing, and it was waiting for
Dan to do some work on annotations that he hasn't gotten around to.

So, I'll probably turn off what I just checked in and look for a way to
implement the original idea next week.

Re: WS-Security & Encryption

Posted by Kit Plummer <ki...@gmail.com>.
I'm guessing you've seen this - but, in case you haven't:

http://cwiki.apache.org/CXF20DOC/ws-security.html

On May 27, 2008, at 7:45 AM, Freeman Fang wrote:

> Hi Yanping,
> Basically, cxf use wss4j to support ws-security
> Take a look at [1], a system test illustrate how to configure cxf  
> with ws-security
>
> [1]http://svn.apache.org/repos/asf/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/security/
>
> Freeman
>
> Liao, Yanping (IT) wrote:
>> Hi,
>> I've been searching for Documentation on CXF support for WS- 
>> Security &
>> Encryption, and hit the document-todos page. Does anyone have any  
>> draft
>> documentation / example on how digital certificate, and encryption  
>> can
>> be done from a CXF client?
>>
>> Thanks,
>> Yanping
>> --------------------------------------------------------
>>
>> NOTICE: If received in error, please destroy and notify sender.  
>> Sender does not intend to waive confidentiality or privilege. Use  
>> of this email is prohibited when received in error.
>>
>>
>


RE: WS-Security & Encryption

Posted by "Liao, Yanping (IT)" <Ya...@morganstanley.com>.
Thanks! We'll check this out and see if we can get it work for our case.


-----Original Message-----
From: Freeman Fang [mailto:freeman.fang@gmail.com] 
Sent: Tuesday, May 27, 2008 10:46 AM
To: users@cxf.apache.org
Subject: Re: WS-Security & Encryption

Hi Yanping,
Basically, cxf use wss4j to support ws-security Take a look at [1], a
system test illustrate how to configure cxf with ws-security

[1]http://svn.apache.org/repos/asf/cxf/trunk/systests/src/test/java/org/
apache/cxf/systest/ws/security/

Freeman

Liao, Yanping (IT) wrote:
> Hi,
>
> I've been searching for Documentation on CXF support for WS-Security &

> Encryption, and hit the document-todos page. Does anyone have any 
> draft documentation / example on how digital certificate, and 
> encryption can be done from a CXF client?
>
> Thanks,
> Yanping
> --------------------------------------------------------
>
> NOTICE: If received in error, please destroy and notify sender. Sender
does not intend to waive confidentiality or privilege. Use of this email
is prohibited when received in error.
>
>
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

Re: WS-Security & Encryption

Posted by Freeman Fang <fr...@gmail.com>.
Hi Yanping,
Basically, cxf use wss4j to support ws-security
Take a look at [1], a system test illustrate how to configure cxf with 
ws-security

[1]http://svn.apache.org/repos/asf/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/security/

Freeman

Liao, Yanping (IT) wrote:
> Hi, 
>
> I've been searching for Documentation on CXF support for WS-Security &
> Encryption, and hit the document-todos page. Does anyone have any draft
> documentation / example on how digital certificate, and encryption can
> be done from a CXF client?
>
> Thanks,
> Yanping
> --------------------------------------------------------
>
> NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
>
>   


WS-Security & Encryption

Posted by "Liao, Yanping (IT)" <Ya...@morganstanley.com>.
Hi, 

I've been searching for Documentation on CXF support for WS-Security &
Encryption, and hit the document-todos page. Does anyone have any draft
documentation / example on how digital certificate, and encryption can
be done from a CXF client?

Thanks,
Yanping
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

Re: wsdl2js question

Posted by Benson Margulies <bi...@gmail.com>.
OK, I'll make a JIRA for it and look into it.

On Fri, May 23, 2008 at 4:53 PM, Johnson, Eric <Er...@iona.com> wrote:
> I tried it with the hello_world wsdl in the wsdl first example.
>
> bin\wsdl2js.bat -p http://apache.org/hello_world_soap_http=fred
> hello_world.wsdl and I still got the fully scoped names.
>
> I also tried bin\wsdl2js.bat -p
> http://apache.org/hello_world_soap_http/types=fred hello_world.wsdl and
> got the same result.
>
> Using the released 2.1 kit.
>
> -----Original Message-----
> From: Benson Margulies [mailto:bimargulies@gmail.com]
> Sent: Friday, May 23, 2008 2:46 PM
> To: users@cxf.apache.org
> Subject: Re: wsdl2js question
>
> Say that you read the js code and see a function named
>
> com_basistech_rnt_ws_NameTranslator
>
> and you would really rather it was just named
>
> rnt_NameTranslator.
>
> You'd say: -p http://ws.rnt.basistech.com=rnt
>
> Best to try some experiments and make sure it works :-)
>
> On Fri, May 23, 2008 at 11:21 AM, Johnson, Eric <Er...@iona.com>
> wrote:
>> What does the -p wsdlNamespace=jsPrefix option do? What is the syntax
>> used to specify the jsPrefix?
>>
>> Thanks,
>> Eric
>>
>

Re: Wsdl2js -client

Posted by Benson Margulies <bi...@gmail.com>.
I think that it is accidental inheritance from the code that the JS
tools were copied from, and should be removed.

On Fri, May 23, 2008 at 5:01 PM, Johnson, Eric <Er...@iona.com> wrote:
> What does the -client flag do?
>
> I used wsdl2js -client against the hello_world wsdl and the result was
> the same as the result without the -client flag.
>

RE: wsdl2js question

Posted by "Johnson, Eric" <Er...@iona.com>.
I tried it with the hello_world wsdl in the wsdl first example.

bin\wsdl2js.bat -p http://apache.org/hello_world_soap_http=fred
hello_world.wsdl and I still got the fully scoped names.

I also tried bin\wsdl2js.bat -p
http://apache.org/hello_world_soap_http/types=fred hello_world.wsdl and
got the same result.

Using the released 2.1 kit.

-----Original Message-----
From: Benson Margulies [mailto:bimargulies@gmail.com] 
Sent: Friday, May 23, 2008 2:46 PM
To: users@cxf.apache.org
Subject: Re: wsdl2js question

Say that you read the js code and see a function named

com_basistech_rnt_ws_NameTranslator

and you would really rather it was just named

rnt_NameTranslator.

You'd say: -p http://ws.rnt.basistech.com=rnt

Best to try some experiments and make sure it works :-)

On Fri, May 23, 2008 at 11:21 AM, Johnson, Eric <Er...@iona.com>
wrote:
> What does the -p wsdlNamespace=jsPrefix option do? What is the syntax 
> used to specify the jsPrefix?
>
> Thanks,
> Eric
>

Wsdl2js -client

Posted by "Johnson, Eric" <Er...@iona.com>.
What does the -client flag do?

I used wsdl2js -client against the hello_world wsdl and the result was
the same as the result without the -client flag.

Re: wsdl2js question

Posted by Benson Margulies <bi...@gmail.com>.
Say that you read the js code and see a function named

com_basistech_rnt_ws_NameTranslator

and you would really rather it was just named

rnt_NameTranslator.

You'd say: -p http://ws.rnt.basistech.com=rnt

Best to try some experiments and make sure it works :-)

On Fri, May 23, 2008 at 11:21 AM, Johnson, Eric <Er...@iona.com> wrote:
> What does the -p wsdlNamespace=jsPrefix option do? What is the syntax
> used to specify the jsPrefix?
>
> Thanks,
> Eric
>