Re: [2.0.5] no write methods....

2008-04-15 Thread Benson Margulies
I've never heard of @Version. I very much doubt that Aegis sees it.

What version of CXF are you using? Could you please post a self-contained
test case to Jira?


On Mon, Apr 14, 2008 at 10:03 PM, Mick Knutson [EMAIL PROTECTED]
wrote:

 I am getting this error now:

 *INFO: Interceptor has thrown exception, unwinding now
 java.lang.RuntimeException: org.apache.cxf.aegis.DatabindingException: No
 write method for property {http://domain.baselogic.com}version in class
  com.baselogic.domain.Address
at

 org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:92)
at

 org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:44)
 *
 Here is my address object and versioned objects:

 *Address:*
 [EMAIL PROTECTED]
 @Table(name = address)
 public class Address extends IdentifiedObject implements Serializable {

private static final long serialVersionUID = 3617859655330969141L;
protected String address;
protected String city;
protected String province;
protected String country;
protected String postalCode;

public Address() {
}

public Address(Long id) {
setId(id);
}

 *

 *VersionedObject:
 [EMAIL PROTECTED]
 public class VersionedObject implements Serializable {
private static final long serialVersionUID = 1L;

protected Integer version;

@Version
public Integer getVersion() {
return version;
}

protected void setVersion(Integer version) {
this.version = version;
}

 }
 *


 So what is the issue with @Version?
 When I remove this set/get method, everything is fine.



 --
 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.linkedin.com/in/mickknutson
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/BLiNCMagazine
 http://tahoe.baselogic.com
 ---



JAXBException: javax.xml.ws.Holder is not known to this context

2008-04-15 Thread nicolas de loof
Hello,

I just generated code from my WSDL using CXF maven2 plugin (2.0.5-incubator)

The generated service interface uses a HolderString argument as both
Request and Response message use the same argument.

When I try to invoke the service using local://service adress, I get a
serialization error :

javax.xml.bind.JAXBException: javax.xml.ws.Holder is not known to this
context
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:538)


As Holder is an jax-ws API class, I have no idea what I could have missed
...

please help ;-)

Nico.


Re: JAXBException: javax.xml.ws.Holder is not known to this context

2008-04-15 Thread nicolas de loof
First, setting the Holder argument to null makes my local://service call
pass.

 I get the message payload : soap:Bodyns1:setPayment ...

I then found in list archive a similar issue, with solution to use
JaxWsProxyFactoryBean fior client.

Using this, my Holder is serialized without issue, but the message is wrong
:
soap:BodySetPayment  ...

-- Notice the upperCase S

This fails to deserialize :

org.apache.cxf.interceptor.Fault: Message part {
http://33J/services/ServicesCommande/schema}SetPayment was not recognized.
(Does it exist in service WSDL?)

Nico.




2008/4/15, nicolas de loof [EMAIL PROTECTED]:

 Hello,

 I just generated code from my WSDL using CXF maven2 plugin
 (2.0.5-incubator)

 The generated service interface uses a HolderString argument as both
 Request and Response message use the same argument.

 When I try to invoke the service using local://service adress, I get a
 serialization error :

 javax.xml.bind.JAXBException: javax.xml.ws.Holder is not known to this
 context
 at
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:538)


 As Holder is an jax-ws API class, I have no idea what I could have missed
 ...

 please help ;-)

 Nico.



Re: JAXBException: javax.xml.ws.Holder is not known to this context

2008-04-15 Thread nicolas de loof
I've found my mistake : reading (
http://cwiki.apache.org/CXF20DOC/local-transport.html) I understood the
distinction between simple and Jax-WS frontends.

Replacing ServerFactoryBean with Endpoint.publish( local://service,
getServiceBean() ); enables the Jax-WS stack and fix my issue.

Nico.


2008/4/15, nicolas de loof [EMAIL PROTECTED]:

 First, setting the Holder argument to null makes my local://service call
 pass.

  I get the message payload : soap:Bodyns1:setPayment ...

 I then found in list archive a similar issue, with solution to use
 JaxWsProxyFactoryBean fior client.

 Using this, my Holder is serialized without issue, but the message is
 wrong :
 soap:BodySetPayment  ...

 -- Notice the upperCase S

 This fails to deserialize :

 org.apache.cxf.interceptor.Fault: Message part {
 http://33J/services/ServicesCommande/schema}SetPaymenthttp://33J/services/ServicesCommande/schema%7DSetPaymentwas
  not recognized.  (Does it exist in service WSDL?)

 Nico.




 2008/4/15, nicolas de loof [EMAIL PROTECTED]:
 
  Hello,
 
  I just generated code from my WSDL using CXF maven2 plugin
  (2.0.5-incubator)
 
  The generated service interface uses a HolderString argument as both
  Request and Response message use the same argument.
 
  When I try to invoke the service using local://service adress, I get a
  serialization error :
 
  javax.xml.bind.JAXBException: javax.xml.ws.Holder is not known to this
  context
  at
  com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:538)
 
 
  As Holder is an jax-ws API class, I have no idea what I could have
  missed ...
 
  please help ;-)
 
  Nico.
 




RE: how to let cxf client accept all/any certificates

2008-04-15 Thread triathlon98

It is clear to me that certificates work like this.
However, this already mixes two uses of SSL/certificates.
One use is encrypting the data which is communicated, the other is verifying
that the server is actually the correct one and not a spoof.

When the only purpose is encrypting the data, you can easily use self signed
certificates. In that case, you don't want the clients to fail because the
server had a need to change the certificate.

Is it possible to either specify directly that all certificates should be
accepted, or register your own TrustManager implementation which does
exactly that? This last case would also be useful for implementing more
strict checks that just comparing with a certificate store.

Kind regards,
Joachim



Arundel, Donal wrote:
 
 At the SSL protocol level the servers that a client will trust is
 governed by the list of Certificate Authorities (CAs) that the client is
 configured to trust.
 
 i.e. You need to configure your client to trust the *Issuing Certificate
 Authority* that created the specific server certificate concerned.
 
 At a separate higher level there may be additional level application
 specific constraints that one might want to apply to lock down things
 further to individual server certificates if neccessary.
 e.g. querying the TLS credentials and applying extra constraints on the
 Subjects Common Name to limit things to a single server.
 
 Cheers,
 Donal
 

-- 
View this message in context: 
http://www.nabble.com/how-to-let-cxf-client-accept-all-any-certificates-tp15562373p16701169.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: [2.0.5] no write methods....

2008-04-15 Thread Daniel Kulp

It might be due to the setVersion method being protected, not public.  
Thus, it might not see it as a propery as there aren't public getters 
and setters.  Not really sure though.

Dan


On Tuesday 15 April 2008, Benson Margulies wrote:
 I've never heard of @Version. I very much doubt that Aegis sees it.

 What version of CXF are you using? Could you please post a
 self-contained test case to Jira?


 On Mon, Apr 14, 2008 at 10:03 PM, Mick Knutson [EMAIL PROTECTED]

 wrote:
  I am getting this error now:
 
  *INFO: Interceptor has thrown exception, unwinding now
  java.lang.RuntimeException:
  org.apache.cxf.aegis.DatabindingException: No write method for
  property {http://domain.baselogic.com}version in class
  com.baselogic.domain.Address
 at
 
  org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
 ataReader.java:92) at
 
  org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
 ataReader.java:44) *
  Here is my address object and versioned objects:
 
  *Address:*
  [EMAIL PROTECTED]
  @Table(name = address)
  public class Address extends IdentifiedObject implements
  Serializable {
 
 private static final long serialVersionUID =
  3617859655330969141L; protected String address;
 protected String city;
 protected String province;
 protected String country;
 protected String postalCode;
 
 public Address() {
 }
 
 public Address(Long id) {
 setId(id);
 }
 
  *
 
  *VersionedObject:
  [EMAIL PROTECTED]
  public class VersionedObject implements Serializable {
 private static final long serialVersionUID = 1L;
 
 protected Integer version;
 
 @Version
 public Integer getVersion() {
 return version;
 }
 
 protected void setVersion(Integer version) {
 this.version = version;
 }
 
  }
  *
 
 
  So what is the issue with @Version?
  When I remove this set/get method, everything is fine.
 
 
 
  --
  Thanks,
  Mick Knutson
 
  http://www.baselogic.com
  http://www.blincmagazine.com
  http://www.linkedin.com/in/mickknutson
  http://www.djmick.com
  http://www.myspace.com/mickknutson
  http://www.myspace.com/BLiNCMagazine
  http://tahoe.baselogic.com
  ---



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Re: [2.0.5] no write methods....

2008-04-15 Thread Benson Margulies
Hmm, I'll look at that. This rings a portion of a bell.

On Tue, Apr 15, 2008 at 11:26 AM, Daniel Kulp [EMAIL PROTECTED] wrote:


 It might be due to the setVersion method being protected, not public.
 Thus, it might not see it as a propery as there aren't public getters
 and setters.  Not really sure though.

 Dan


 On Tuesday 15 April 2008, Benson Margulies wrote:
  I've never heard of @Version. I very much doubt that Aegis sees it.
 
  What version of CXF are you using? Could you please post a
  self-contained test case to Jira?
 
 
  On Mon, Apr 14, 2008 at 10:03 PM, Mick Knutson [EMAIL PROTECTED]
 
  wrote:
   I am getting this error now:
  
   *INFO: Interceptor has thrown exception, unwinding now
   java.lang.RuntimeException:
   org.apache.cxf.aegis.DatabindingException: No write method for
   property {http://domain.baselogic.com}version in class
   com.baselogic.domain.Address
  at
  
   org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
  ataReader.java:92) at
  
   org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
  ataReader.java:44) *
   Here is my address object and versioned objects:
  
   *Address:*
   [EMAIL PROTECTED]
   @Table(name = address)
   public class Address extends IdentifiedObject implements
   Serializable {
  
  private static final long serialVersionUID =
   3617859655330969141L; protected String address;
  protected String city;
  protected String province;
  protected String country;
  protected String postalCode;
  
  public Address() {
  }
  
  public Address(Long id) {
  setId(id);
  }
  
   *
  
   *VersionedObject:
   [EMAIL PROTECTED]
   public class VersionedObject implements Serializable {
  private static final long serialVersionUID = 1L;
  
  protected Integer version;
  
  @Version
  public Integer getVersion() {
  return version;
  }
  
  protected void setVersion(Integer version) {
  this.version = version;
  }
  
   }
   *
  
  
   So what is the issue with @Version?
   When I remove this set/get method, everything is fine.
  
  
  
   --
   Thanks,
   Mick Knutson
  
   http://www.baselogic.com
   http://www.blincmagazine.com
   http://www.linkedin.com/in/mickknutson
   http://www.djmick.com
   http://www.myspace.com/mickknutson
   http://www.myspace.com/BLiNCMagazine
   http://tahoe.baselogic.com
   ---



 --
 J. Daniel Kulp
 Principal Engineer, IONA
 [EMAIL PROTECTED]
 http://www.dankulp.com/blog



java2ws 2.1

2008-04-15 Thread Dušan Mamrilla
Hi,

   I have problem using java2ws on windows. In order to generate classes
into desired directory  I use suggested
argline -s {desired_path} /argline. Problem is with {desired_path} when
it contains blank spaces (e.g. c:\Document and Settings\ ...).
I think new tag or quotation support would solve this problem.

  Should I fill the jira or am I missing something ?

DM


Re: [2.0.5] no write methods....

2008-04-15 Thread Mick Knutson
I just tried that, and it works.

On Tue, Apr 15, 2008 at 8:33 AM, Benson Margulies [EMAIL PROTECTED]
wrote:

 Hmm, I'll look at that. This rings a portion of a bell.

 On Tue, Apr 15, 2008 at 11:26 AM, Daniel Kulp [EMAIL PROTECTED] wrote:

 
  It might be due to the setVersion method being protected, not public.
  Thus, it might not see it as a propery as there aren't public getters
  and setters.  Not really sure though.
 
  Dan
 
 
  On Tuesday 15 April 2008, Benson Margulies wrote:
   I've never heard of @Version. I very much doubt that Aegis sees it.
  
   What version of CXF are you using? Could you please post a
   self-contained test case to Jira?
  
  
   On Mon, Apr 14, 2008 at 10:03 PM, Mick Knutson [EMAIL PROTECTED]
  
   wrote:
I am getting this error now:
   
*INFO: Interceptor has thrown exception, unwinding now
java.lang.RuntimeException:
org.apache.cxf.aegis.DatabindingException: No write method for
property {http://domain.baselogic.com}version in class
com.baselogic.domain.Address
   at
   
org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
   ataReader.java:92) at
   
org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
   ataReader.java:44) *
Here is my address object and versioned objects:
   
*Address:*
[EMAIL PROTECTED]
@Table(name = address)
public class Address extends IdentifiedObject implements
Serializable {
   
   private static final long serialVersionUID =
3617859655330969141L; protected String address;
   protected String city;
   protected String province;
   protected String country;
   protected String postalCode;
   
   public Address() {
   }
   
   public Address(Long id) {
   setId(id);
   }
   
*
   
*VersionedObject:
[EMAIL PROTECTED]
public class VersionedObject implements Serializable {
   private static final long serialVersionUID = 1L;
   
   protected Integer version;
   
   @Version
   public Integer getVersion() {
   return version;
   }
   
   protected void setVersion(Integer version) {
   this.version = version;
   }
   
}
*
   
   
So what is the issue with @Version?
When I remove this set/get method, everything is fine.
   
   
   
--
Thanks,
Mick Knutson
   
http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---
 
 
 
  --
  J. Daniel Kulp
  Principal Engineer, IONA
  [EMAIL PROTECTED]
  http://www.dankulp.com/blog
 




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


wsdl2java and BARE ParameterType

2008-04-15 Thread nicolas de loof
Hello,

using a Wsdl first development, is there a wsdl2java argument to force use
of SOAPBinding ParameterStyle.BARE ?

My WSDL declares Request / Response wrapper objects, and I'd like to get
them as is, and not have generated methods with many simple arguments.

Nico.


Re: [2.0.5] no write methods....

2008-04-15 Thread Mick Knutson
But if I have a DAO and a Domain Object in the same package, yet the Domain
Object has a protected setVersion, why would there be an error? I do not
want the version for be public. Only the getter.

On Tue, Apr 15, 2008 at 10:00 AM, Benson Margulies [EMAIL PROTECTED]
wrote:

 Hmm, I guess this is working as designed.

 On Tue, Apr 15, 2008 at 12:58 PM, Mick Knutson [EMAIL PROTECTED]
 wrote:

  I just tried that, and it works.
 
  On Tue, Apr 15, 2008 at 8:33 AM, Benson Margulies [EMAIL PROTECTED]
 
  wrote:
 
   Hmm, I'll look at that. This rings a portion of a bell.
  
   On Tue, Apr 15, 2008 at 11:26 AM, Daniel Kulp [EMAIL PROTECTED]
 wrote:
  
   
It might be due to the setVersion method being protected, not
 public.
Thus, it might not see it as a propery as there aren't public
 getters
and setters.  Not really sure though.
   
Dan
   
   
On Tuesday 15 April 2008, Benson Margulies wrote:
 I've never heard of @Version. I very much doubt that Aegis sees
 it.

 What version of CXF are you using? Could you please post a
 self-contained test case to Jira?


 On Mon, Apr 14, 2008 at 10:03 PM, Mick Knutson 
  [EMAIL PROTECTED]

 wrote:
  I am getting this error now:
 
  *INFO: Interceptor has thrown exception, unwinding now
  java.lang.RuntimeException:
  org.apache.cxf.aegis.DatabindingException: No write method for
  property {http://domain.baselogic.com}version in class
  com.baselogic.domain.Address
 at
 
 
  org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
 ataReader.java:92) at
 
 
  org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
 ataReader.java:44) *
  Here is my address object and versioned objects:
 
  *Address:*
  [EMAIL PROTECTED]
  @Table(name = address)
  public class Address extends IdentifiedObject implements
  Serializable {
 
 private static final long serialVersionUID =
  3617859655330969141L; protected String address;
 protected String city;
 protected String province;
 protected String country;
 protected String postalCode;
 
 public Address() {
 }
 
 public Address(Long id) {
 setId(id);
 }
 
  *
 
  *VersionedObject:
  [EMAIL PROTECTED]
  public class VersionedObject implements Serializable {
 private static final long serialVersionUID = 1L;
 
 protected Integer version;
 
 @Version
 public Integer getVersion() {
 return version;
 }
 
 protected void setVersion(Integer version) {
 this.version = version;
 }
 
  }
  *
 
 
  So what is the issue with @Version?
  When I remove this set/get method, everything is fine.
 
 
 
  --
  Thanks,
  Mick Knutson
 
  http://www.baselogic.com
  http://www.blincmagazine.com
  http://www.linkedin.com/in/mickknutson
  http://www.djmick.com
  http://www.myspace.com/mickknutson
  http://www.myspace.com/BLiNCMagazine
  http://tahoe.baselogic.com
  ---
   
   
   
--
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog
   
  
 
 
 
  --
  Thanks,
  Mick Knutson
 
  http://www.baselogic.com
  http://www.blincmagazine.com
  http://www.linkedin.com/in/mickknutson
  http://www.djmick.com
  http://www.myspace.com/mickknutson
  http://www.myspace.com/BLiNCMagazine
  http://tahoe.baselogic.com
  ---
 




-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: [2.0.5] no write methods....

2008-04-15 Thread Benson Margulies
Hmm, I guess this is working as designed.

On Tue, Apr 15, 2008 at 12:58 PM, Mick Knutson [EMAIL PROTECTED]
wrote:

 I just tried that, and it works.

 On Tue, Apr 15, 2008 at 8:33 AM, Benson Margulies [EMAIL PROTECTED]
 wrote:

  Hmm, I'll look at that. This rings a portion of a bell.
 
  On Tue, Apr 15, 2008 at 11:26 AM, Daniel Kulp [EMAIL PROTECTED] wrote:
 
  
   It might be due to the setVersion method being protected, not public.
   Thus, it might not see it as a propery as there aren't public getters
   and setters.  Not really sure though.
  
   Dan
  
  
   On Tuesday 15 April 2008, Benson Margulies wrote:
I've never heard of @Version. I very much doubt that Aegis sees it.
   
What version of CXF are you using? Could you please post a
self-contained test case to Jira?
   
   
On Mon, Apr 14, 2008 at 10:03 PM, Mick Knutson 
 [EMAIL PROTECTED]
   
wrote:
 I am getting this error now:

 *INFO: Interceptor has thrown exception, unwinding now
 java.lang.RuntimeException:
 org.apache.cxf.aegis.DatabindingException: No write method for
 property {http://domain.baselogic.com}version in class
 com.baselogic.domain.Address
at


 org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
ataReader.java:92) at


 org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamD
ataReader.java:44) *
 Here is my address object and versioned objects:

 *Address:*
 [EMAIL PROTECTED]
 @Table(name = address)
 public class Address extends IdentifiedObject implements
 Serializable {

private static final long serialVersionUID =
 3617859655330969141L; protected String address;
protected String city;
protected String province;
protected String country;
protected String postalCode;

public Address() {
}

public Address(Long id) {
setId(id);
}

 *

 *VersionedObject:
 [EMAIL PROTECTED]
 public class VersionedObject implements Serializable {
private static final long serialVersionUID = 1L;

protected Integer version;

@Version
public Integer getVersion() {
return version;
}

protected void setVersion(Integer version) {
this.version = version;
}

 }
 *


 So what is the issue with @Version?
 When I remove this set/get method, everything is fine.



 --
 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.linkedin.com/in/mickknutson
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/BLiNCMagazine
 http://tahoe.baselogic.com
 ---
  
  
  
   --
   J. Daniel Kulp
   Principal Engineer, IONA
   [EMAIL PROTECTED]
   http://www.dankulp.com/blog
  
 



 --
 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.linkedin.com/in/mickknutson
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/BLiNCMagazine
 http://tahoe.baselogic.com
 ---



Q: Issues when attempting to send gt. Wind up with amp;gt;

2008-04-15 Thread adam_j_bradley

I'm currently setting this string (which forms part of the WSSecurityHeader),
however, when I try and use gt; I wind up with amp;gt;.

---snip---
ppSoapHeader25lt;s:ppSoapHeader
xmlns:s=http://url/SoapServices/SoapHeader;
version=1.0lt;s:lcid1033lt;/s:lcids:sitetokent:siteheader
xmlns:t=http://url/SiteToken; id=253988
//s:sitetoken/s:ppSoapHeader/ppSoapHeader25
---snip---

What I want the web service to see is 

---snip---
ppSoapHeader25lt;s:ppSoapHeader xmlns:s=http://url/SoapHeader;
version=1.0gt;lt;s:lcidgt;1033lt;/s:lcidgt;lt;s:sitetokengt;lt;t:siteheader
xmlns:t=http://url/SiteToken; id=253988
/gt;lt;/s:sitetokengt;lt;/s:ppSoapHeadergt;/ppSoapHeader25
---snip---

Any ideas?
Thanks in advance!
Adam


-- 
View this message in context: 
http://www.nabble.com/Q%3A-Issues-when-attempting-to-send-%22-gt%22.-Wind-up-with-%22-amp-gt-%22-tp16703395p16703395.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: [2.0.5] no write methods....

2008-04-15 Thread Benson Margulies
Aegis doesn't know from DAO and Domain objects. It just knows that you want
to map a class to XML. It requires a way to both retrieve and set a field.
Dan, is JAXB more permissive here? If so, I guess we could change Aegis to
permit Java-XML and throw on XML-Java.


Re: Q: Issues when attempting to send . Wind up with gt;

2008-04-15 Thread Benson Margulies
Something happened to your email, there are no gt expressions in the XML.

Any  inside of an XML element has to be escaped. If you are trying to add
your own XML elements inside of this, then you need a different mechanism.



On Tue, Apr 15, 2008 at 1:23 PM, adam_j_bradley [EMAIL PROTECTED]
wrote:


 I'm currently setting this string (which forms part of the
 WSSecurityHeader),
 however, when I try and use  I wind up with gt;.

 ---snip---
 ppSoapHeader25s:ppSoapHeader
 xmlns:s=http://url/SoapServices/SoapHeader;
 version=1.0s:lcid1033/s:lcids:sitetokent:siteheader
 xmlns:t=http://url/SiteToken; id=253988
 //s:sitetoken/s:ppSoapHeader/ppSoapHeader25
 ---snip---

 What I want the web service to see is

 ---snip---
 ppSoapHeader25s:ppSoapHeader xmlns:s=http://url/SoapHeader;
 version=1.0s:lcid1033/s:lcids:sitetokent:siteheader
 xmlns:t=http://url/SiteToken; id=253988
 //s:sitetoken/s:ppSoapHeader/ppSoapHeader25
 ---snip---

 Any ideas?
 Thanks in advance!
 Adam


 --
 View this message in context:
 http://www.nabble.com/Q%3A-Issues-when-attempting-to-send-%22-gt%22.-Wind-up-with-%22-amp-gt-%22-tp16703395p16703395.html
 Sent from the cxf-user mailing list archive at Nabble.com.




Re: [2.0.5] no write methods....

2008-04-15 Thread Daniel Kulp
On Tuesday 15 April 2008, Benson Margulies wrote:
 Aegis doesn't know from DAO and Domain objects. It just knows that you
 want to map a class to XML. It requires a way to both retrieve and set
 a field. Dan, is JAXB more permissive here? If so, I guess we could
 change Aegis to permit Java-XML and throw on XML-Java.

Well, JAXB CAN be more permissive as you can tell jaxb to completely 
ignore the getter/setters and access the fields directly.   That's 
actually the default if you annotate the field with the @XmlElement 
annotation instead of the getter.   Since most people annotate the field 
instead of the methods, it will normally access the field directly.

However, if you DON'T put @XmlElement annotations on things, then the 
default behavior for JAXB would be exactly the same.   It wouldn't find 
a public property named version as there wouldn't be a setter 
available.


-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Re: wsdl2java and BARE ParameterType

2008-04-15 Thread Chris McClelland

Hi Nico,

You have to supply a JAXWS binding file which tells CXF to generate the 
BARE API.


See the entry at the bottom of this page: 
http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html


It's silly to default to WRAPPED, but that's what JAXWS demands, so it's 
not CXF's fault.


- Chris


nicolas de loof wrote:

Hello,

using a Wsdl first development, is there a wsdl2java argument to force use
of SOAPBinding ParameterStyle.BARE ?

My WSDL declares Request / Response wrapper objects, and I'd like to get
them as is, and not have generated methods with many simple arguments.

Nico.

  




Re: wsdl2java and BARE ParameterType

2008-04-15 Thread nicolas de loof
Thanks,


that's not so silly as many of my service arguments are In/Out, so using
Holders makes sence. With BARE I'll have to copy Request to Reponse ... But
for other reason this will makes my service look better.

cheers,
Nico.


2008/4/15, Chris McClelland [EMAIL PROTECTED]:

 Hi Nico,

 You have to supply a JAXWS binding file which tells CXF to generate the
 BARE API.

 See the entry at the bottom of this page:
 http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html

 It's silly to default to WRAPPED, but that's what JAXWS demands, so it's
 not CXF's fault.

 - Chris


 nicolas de loof wrote:

  Hello,
 
  using a Wsdl first development, is there a wsdl2java argument to force
  use
  of SOAPBinding ParameterStyle.BARE ?
 
  My WSDL declares Request / Response wrapper objects, and I'd like to get
  them as is, and not have generated methods with many simple arguments.
 
  Nico.
 
 
 




Re: Q: Issues when attempting to send . Wind up with gt;

2008-04-15 Thread adam_j_bradley

Bugger! I'll try again. What I want to send is
http://www.papernapkin.org/pastebin/view/494/

But what winds up being send it 
http://www.papernapkin.org/pastebin/view/496/

The ampersand (spaces added to this example) in the  lt ;  gets further
delimated with  amp ; lt ;

Any ideas?
Thanks in advance!
Adam


Benson Margulies-4 wrote:
 
 Something happened to your email, there are no gt expressions in the XML.
 
 Any  inside of an XML element has to be escaped. If you are trying to add
 your own XML elements inside of this, then you need a different mechanism.
 
 

-- 
View this message in context: 
http://www.nabble.com/Q%3A-Issues-when-attempting-to-send-%22-gt%22.-Wind-up-with-%22-amp-gt-%22-tp16703395p16714294.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: Can‘t find how to access the webserv ice when deployed into tomcat

2008-04-15 Thread Freeman Fang
Hi,
Which url you are using to access the the service?
It should be http://localhost:8080/your-war-name/services/HelloWorld
according to your configuration.
And use http://localhost:8080/your-war-name/services/HelloWorld?wsdl to
access the wsdl
I assume your tomcat server use 8080 port.
Regards
Freeman

Jackey Ding wrote:
 Hi,

 I success deploy a webservice into tomcat, but I can't find the right url to
 access it. here is my configuration

 

 Web.xml

 ?xml version=1.0 encoding=UTF-8?

 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 display-namecxf/display-name
 descriptioncxf/description

 servlet
 servlet-nameCXFServlet/servlet-name
 display-nameCXF Servlet/display-name
 descriptionApache CXF Endpoint/description

 servlet-classorg.apache.cxf.transport.servlet.CXFServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-nameCXFServlet/servlet-name
 url-pattern/services/*/url-pattern
 /servlet-mapping
 session-config
 session-timeout60/session-timeout
 /session-config
 /web-app
 
  cxf-servlet.xml:

 ?xml version=1.0 encoding=UTF-8?
 beans xmlns=http://www.springframework.org/schema/beans;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:jaxws=http://cxf.apache.org/jaxws;
 xmlns:soap=http://cxf.apache.org/bindings/soap;
 xsi:schemaLocation=
 http://www.springframework.org/schema/beans
 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
 http://cxf.apache.org/bindings/soap
 http://cxf.apache.org/schemas/configuration/soap.xsd
 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd;


 jaxws:endpoint
 id=P2Pprovider_xml_bare
 implementor=demo.hw.server.HelloWorldImpl
 wsdlLocation=WEB-INF/wsdl/P2Pprovider.wsdl
 address=/HelloWorld 
 /jaxws:endpoint
 /beans

 

 P2Pprovider.wsdl

 ?xml version=1.0 encoding=UTF-8?
 wsdl:definitions
  xmlns:ns1=http://schemas.xmlsoap.org/soap/http;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns:tns=http://server.hw.demo/;
  xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  name=HelloWorldService
  targetNamespace=http://server.hw.demo/;
   wsdl:types
 xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;
 attributeFormDefault=unqualified elementFormDefault=unqualified
 targetNamespace=http://server.hw.demo/;
 xs:element name=getUsers type=tns:getUsers/
 xs:element name=getUsersResponse type=tns:getUsersResponse/
 xs:element name=sayHi type=tns:sayHi/
 xs:element name=sayHiResponse type=tns:sayHiResponse/
 xs:element name=sayHiToUser type=tns:sayHiToUser/
 xs:element name=sayHiToUserResponse type=tns:sayHiToUserResponse/
 xs:complexType name=sayHi
 xs:sequence
 xs:element minOccurs=0 name=arg0 type=xs:string/
 /xs:sequence
 /xs:complexType
 xs:complexType name=sayHiResponse
 xs:sequence
 xs:element minOccurs=0 name=return type=xs:string/
 /xs:sequence
 /xs:complexType
 xs:complexType name=sayHiToUser
 xs:sequence
 xs:element minOccurs=0 name=arg0 type=tns:User/
 /xs:sequence
 /xs:complexType
 xs:complexType name=User
 xs:sequence
 xs:element minOccurs=0 name=name type=xs:string/
 /xs:sequence
 /xs:complexType
 xs:complexType name=sayHiToUserResponse
 xs:sequence
 xs:element minOccurs=0 name=return type=xs:string/
 /xs:sequence
 /xs:complexType
 xs:complexType name=getUsers
 xs:sequence/
 /xs:complexType
 xs:complexType name=getUsersResponse
 xs:sequence
 xs:element minOccurs=0 name=return
 type=tns:IntegerUserMap/
 /xs:sequence
 /xs:complexType
 xs:complexType name=IntegerUserMap
 xs:sequence
 xs:element maxOccurs=unbounded minOccurs=0 name=entry
 type=tns:IdentifiedUser/
 /xs:sequence
 /xs:complexType
 xs:complexType name=IdentifiedUser
 xs:sequence
 xs:element name=id type=xs:int/
 xs:element minOccurs=0 name=user type=tns:User/
 /xs:sequence
 /xs:complexType
 /xs:schema
   /wsdl:types
   wsdl:message name=sayHiToUserResponse
 wsdl:part element=tns:sayHiToUserResponse name=parameters
 /wsdl:part
   /wsdl:message
   

Re: Can‘t find how to access the webservice when deployed into tomcat

2008-04-15 Thread Mick Knutson
Just try http://localhost:8080/your-war-name/services/
You should get a list of all services deployed.

2008/4/15 Freeman Fang [EMAIL PROTECTED]:

 Hi,
 Which url you are using to access the the service?
 It should be http://localhost:8080/your-war-name/services/HelloWorld
 according to your configuration.
 And use http://localhost:8080/your-war-name/services/HelloWorld?wsdl to
 access the wsdl
 I assume your tomcat server use 8080 port.
 Regards
 Freeman

 Jackey Ding wrote:
  Hi,
 
  I success deploy a webservice into tomcat, but I can't find the right
 url to
  access it. here is my configuration
 
 
 
 
  Web.xml
 
  ?xml version=1.0 encoding=UTF-8?
 
  !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
  2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
  display-namecxf/display-name
  descriptioncxf/description
 
  servlet
  servlet-nameCXFServlet/servlet-name
  display-nameCXF Servlet/display-name
  descriptionApache CXF Endpoint/description
 
 
 servlet-classorg.apache.cxf.transport.servlet.CXFServlet/servlet-class
  load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
  servlet-nameCXFServlet/servlet-name
  url-pattern/services/*/url-pattern
  /servlet-mapping
  session-config
  session-timeout60/session-timeout
  /session-config
  /web-app
 
 
   cxf-servlet.xml:
 
  ?xml version=1.0 encoding=UTF-8?
  beans xmlns=http://www.springframework.org/schema/beans;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:jaxws=http://cxf.apache.org/jaxws;
  xmlns:soap=http://cxf.apache.org/bindings/soap;
  xsi:schemaLocation=
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://cxf.apache.org/bindings/soap
  http://cxf.apache.org/schemas/configuration/soap.xsd
  http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd;
 
 
  jaxws:endpoint
  id=P2Pprovider_xml_bare
  implementor=demo.hw.server.HelloWorldImpl
  wsdlLocation=WEB-INF/wsdl/P2Pprovider.wsdl
  address=/HelloWorld 
  /jaxws:endpoint
  /beans
 
 
 
 
  P2Pprovider.wsdl
 
  ?xml version=1.0 encoding=UTF-8?
  wsdl:definitions
   xmlns:ns1=http://schemas.xmlsoap.org/soap/http;
   xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   xmlns:tns=http://server.hw.demo/;
   xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   name=HelloWorldService
   targetNamespace=http://server.hw.demo/;
wsdl:types
  xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;
  attributeFormDefault=unqualified elementFormDefault=unqualified
  targetNamespace=http://server.hw.demo/;
  xs:element name=getUsers type=tns:getUsers/
  xs:element name=getUsersResponse type=tns:getUsersResponse/
  xs:element name=sayHi type=tns:sayHi/
  xs:element name=sayHiResponse type=tns:sayHiResponse/
  xs:element name=sayHiToUser type=tns:sayHiToUser/
  xs:element name=sayHiToUserResponse
 type=tns:sayHiToUserResponse/
  xs:complexType name=sayHi
  xs:sequence
  xs:element minOccurs=0 name=arg0 type=xs:string/
  /xs:sequence
  /xs:complexType
  xs:complexType name=sayHiResponse
  xs:sequence
  xs:element minOccurs=0 name=return type=xs:string/
  /xs:sequence
  /xs:complexType
  xs:complexType name=sayHiToUser
  xs:sequence
  xs:element minOccurs=0 name=arg0 type=tns:User/
  /xs:sequence
  /xs:complexType
  xs:complexType name=User
  xs:sequence
  xs:element minOccurs=0 name=name type=xs:string/
  /xs:sequence
  /xs:complexType
  xs:complexType name=sayHiToUserResponse
  xs:sequence
  xs:element minOccurs=0 name=return type=xs:string/
  /xs:sequence
  /xs:complexType
  xs:complexType name=getUsers
  xs:sequence/
  /xs:complexType
  xs:complexType name=getUsersResponse
  xs:sequence
  xs:element minOccurs=0 name=return
  type=tns:IntegerUserMap/
  /xs:sequence
  /xs:complexType
  xs:complexType name=IntegerUserMap
  xs:sequence
  xs:element maxOccurs=unbounded minOccurs=0 name=entry
  type=tns:IdentifiedUser/
  /xs:sequence
  /xs:complexType
  xs:complexType name=IdentifiedUser
  xs:sequence
  xs:element name=id