RE: newbie: namespace error

2004-10-13 Thread Kransen, J.
Thank you all for your help. In the end it turned out that I was very close
from the beginning, but I should have added this namespace definition to the
envelope:

envelope.addNamespaceDeclaration(xsd, http://www.w3.org/2001/XMLSchema;);

I made some other minor modifications, but I do think that this was the key
to success.

Thanks again!

Jeroen

-Oorspronkelijk bericht-
Van: Patrick Herber [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 12 oktober 2004 14:59
Aan: [EMAIL PROTECTED]
Onderwerp: [*** Mogelijke SPAM ***] - RE: newbie: namespace error - Enco ded
IP - Encoded IP

Yes,
you're right! I looked at the specification for QName and:

Qualified Name
QName   ::= (Prefix ':')? LocalPart
Prefix  ::= NCName
LocalPart   ::= NCName

NCName  ::= (Letter | '_') (NCNameChar)*/*
An XML Name, minus the : */
NCNameChar  ::= Letter | Digit | '.' | '-' | '_' | CombiningChar |
Extender

Regards,
Patrick


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Dienstag, 12. Oktober 2004 14:17
 To: [EMAIL PROTECTED]
 Subject: RE: [*** Mogelijke SPAM ***] - RE: newbie: namespace 
 error - Enco ded IP
 
 Hi, 
 
 I could be wrong, but, I do not think you can use a : (colon) 
 in a namespace as it is the seperator character for the 
 namespace prefix and the element.
 
 I have never tried using a : before in a namespace and can't 
 remember if it is a legal character for a QNAME, you could 
 look this up on the w3c site if you have time.
 
 Regards
 
 Steve
 
 Quoting Patrick Herber [EMAIL PROTECTED]:
 
  Hi,
  
  sorry I'm not really an expert... I also think so (that 
  urn:tempuri-org:RISC should be the correct namespace) and 
 therefore 
  I thought that changing your code in:
  
  ...
  
  Name bodyName = sf.createName(fetchClientRISc, S2, 
  urn:tempuri-org:RISC); SOAPBodyElement bodyElement = 
  body.addBodyElement(bodyName); // CVS nummer Name 
 clientNummerName = 
  sf.createName(piClieNr, S2, urn:tempuri-org:RISC); 
 SOAPElement 
  clientNummer = bodyElement.addChildElement(clientNummerName);
  clientNummer.addTextNode(clientgegevens.getCvsNummer());
  // Gebruikersnaam
  Name gebruikersnaamName = sf.createName(pcMedewerker, S2, 
  urn:tempuri-org:RISC); SOAPElement gebruikersnaam = 
  bodyElement.addChildElement(gebruikersnaamName);
  
  ...
  
  would solve that problem.
  If this is not the case we have to wait for somebody more expert in 
  this field...
  
  Sorry
  Regards,
  Patrick
  
   
  
   -Original Message-
   From: Kransen, J. [mailto:[EMAIL PROTECTED]
   Sent: Dienstag, 12. Oktober 2004 11:57
   To: '[EMAIL PROTECTED]'
   Subject: RE: [*** Mogelijke SPAM ***] - RE: newbie: 
 namespace error 
   - Enco ded IP
   
   Hi, thanks for your response.
   
   I tried to prefix those elements as well, but the error message 
   remains the same. I assume from the WSDL that the prefix 
 should be 
   S2, but if you take a look at it, can you confirm that 
 that is the 
   right prefix? I tried a lot of strings from this WSDL as prefix, 
   with no difference.
   
   ?xml version=1.0 encoding=UTF-8 ? wsdl:definitions 
   name=RISC targetNamespace=urn:tempuri-org
   xmlns:tns=urn:tempuri-org xmlns:S2=urn:tempuri-org:RISC
   xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
   xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
   xmlns:S1=http://www.tempuri.org/wsa/wsa1;
   xmlns=http://schemas.xmlsoap.org/wsdl/;
 wsdl:documentationAuthor=JHE, EncodingType=DOC_LITERAL, 
   Proxygen_Product=Progress Version 10.0A/wsdl:documentation 
   wsdl:types schema elementFormDefault=unqualified
   targetNamespace=http://www.tempuri.org/wsa/wsa1;
   xmlns=http://www.w3.org/2001/XMLSchema;
   element name=FaultDetail
   complexType
   sequence
 element name=errorMessage type=xsd:string /
 element name=requestID type=xsd:string /
 /sequence
 /complexType
 /element
 /schema
   schema elementFormDefault=qualified
   targetNamespace=urn:tempuri-org:RISC
   xmlns=http://www.w3.org/2001/XMLSchema;
   complexType name=fetchClientRISc_ttClieRow sequence
 element name=clienrv nillable=true type=xsd:int /
 element name=clievl nillable=true type=xsd:string /
 element name=clienmv nillable=true type=xsd:string /
 element name=clievv nillable=true type=xsd:string /
 element name=clienma nillable=true type=xsd:string /
 element name=cliedtg nillable=true type=xsd:string /
 element name=clienmplts nillable=true type=xsd:string /
 element name=clieingesl nillable=true type=xsd:string /
 element name=landom nillable=true type=xsd:string /
 element name=landomoud nillable=true type=xsd:string /
 element name=opdrgv nillable=true type=xsd:string /
 element name=parketnr nillable=true type=xsd:string /
 element name=delictcode1 nillable=true type=xsd:string /
 

using axis from IP address as opposed to domain name

2004-10-13 Thread Suzy Fynes












Hey,



Can anyone tell me if there is any security risk with using axis
directly from an ip address as opposed to having it
accessed through a domain name, ie having it accessed
from http://25.123.156.100:8080/axis as
opposed to http://www.mydomainname.com/axis



Thanks

Suzy








RE: WSDL2Java and Basic Profile

2004-10-13 Thread Anne Thomas Manes
Interesting. I think you found a bug in the WS-I Basic Profile.
According to the WSDL 1.1 specification [1] and the latest version of the
WSDL 1.1 XML Schema [2], the definitions/binding/operation/input element
does not include the @message attribute. Therefore the sample in the WS-I
Basic Profile is in error. 

[1] http://www.w3.org/TR/wsdl#_bindings 
[2] http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd

You need to remove the @message attributes from your input and output
definitions in your binding definitions. 

Also, note that the example you referenced is for RPC style services, but
you've written a Document style service. When writing a Document style
service you must NOT include the namespace attribute:

R2716 A document-literal binding in a DESCRIPTION MUST NOT have the
namespace attribute specified on contained soapbind:body, soapbind:header,
soapbind:headerfault and soapbind:fault elements.

Also, when using Document style, your message part definitions must
reference an element rather than a type. 

R2204 A document-literal binding in a DESCRIPTION MUST refer, in each of its
soapbind:body element(s), only to wsdl:part element(s) that have been
defined using the element attribute. 

Try this WSDL:

?xml version=1.0 encoding=UTF-8?
wsdl:definitions targetNamespace=http://cityxpress.com/external;
  xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns:tns=http://cityxpress.com/external;

  wsdl:types
xsd:schema targetNamespace=http://cityxpress.com/external;
  xsd:element name=getObject type=GetObjectType/
   xsd:complexType name=GetObjectType
xsd:sequence
  xsd:element name=id type=xsd:string/
/xsd:secquence
  /xsd:complexType 
  xsd:element name=getObjectReturn type=CXObjectType/  
  xsd:complexType name=CXObjectType
xsd:sequence
  xsd:element name=thedate type=xsd:dateTime/
  xsd:element name=avalue type=xsd:int/
/xsd:sequence
  /xsd:complexType
/xsd:schema
  /wsdl:types
  wsdl:message name=getObjectRequest
wsdl:part name=parameters element=tns:getObject/
  /wsdl:message
  wsdl:message name=getObjectResponse
wsdl:part name=parameters type=tns:getObjectReturn/
  /wsdl:message
  wsdl:portType name=XMTestPortType
wsdl:operation name=getObject
  wsdl:input message=tns:getObjectRequest/
  wsdl:output message=tns:getObjectResponse/
/wsdl:operation
  /wsdl:portType
  wsdl:binding name=XMTestBinding type=tns:XMTestPortType
soap:binding style=document
  transport=http://schemas.xmlsoap.org/soap/http//
wsdl:operation name=getObject
  soap:operation soapAction=/
  wsdl:input
soap:body use=literal/
  /wsdl:input
  wsdl:output
soap:body use=literal/
  /wsdl:output
/wsdl:operation
  /wsdl:binding
  wsdl:service name=XMTest
wsdl:port name=XMTest binding=tns:XMTestBinding
  soap:address location=http://localhost:8080/v01/XMTest/
/wsdl:port
  /wsdl:service
/wsdl:definitions

Regards,
Anne

-Original Message-
From: Dan Ciarniello [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 09, 2004 12:08 AM
To: [EMAIL PROTECTED]
Subject: WSDL2Java and Basic Profile

I am trying to follow the advice that I've seen in this mailing list by 
handcrafting a WSDL and feeding it to WSDL2Java.  I'm also trying to 
make it conform to the WS-I Basic Profile requirements.  Unfortunately, 
I'm running into problems.

When I run WSDL2Java, I this:

WSDLException (at 
/wsdl:definitions/wsdl:binding/wsdl:operation/wsdl:input): 
faultCode=INVALID_WSDL: Encountered illegal extension attribute 
'message'. Extension attributes must be in a namespace other than WSDL's.:

There may be a problem with my WSDL (see below) but I also grabbed the 
WS-I sample WSDL found at

http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#Namespaces_for
_Children_of_Part_Accessors

This gives exactly the same error.

It seems a bit odd that a CORRECT WSDL from the WS-I site should not 
be considered valid.

Here's my WSDL:

?xml version=1.0 encoding=UTF-8?
wsdl:definitions targetNamespace=http://cityxpress.com/external;
  xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns:tns=http://cityxpress.com/external;

  wsdl:types
xsd:schema targetNamespace=http://cityxpress.com/external;
  xsd:complexType name=CXObjectType
xsd:sequence
  xsd:element name=thedate type=xsd:dateTime/
  xsd:element name=avalue type=xsd:int/
/xsd:sequence
  /xsd:complexType
/xsd:schema
  /wsdl:types
  wsdl:message name=getObjectRequest
wsdl:part name=id type=xsd:string/
  /wsdl:message
  wsdl:message name=getObjectResponse
wsdl:part name=getObjectReturn type=tns:CXObjectType/
  /wsdl:message
  wsdl:portType name=XMTestPortType
wsdl:operation 

Re: mod_axis2.dll loading problem

2004-10-13 Thread sanjaya singharage
Title: Message



could you please send this query to the axis-c user 
list at [EMAIL PROTECTED]?

sanjaya.

  - Original Message - 
  From: 
  Anton 
  Zotov 
  To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] 
  
  Sent: Wednesday, October 13, 2004 1:42 
  AM
  Subject: mod_axis2.dll loading 
  problem
  
  Hi!Loading of 
  mod_axis2.dll in according to the 
  manual for installation under Apache2 HTTP server causes 
  error:~Syntax 
  error on line 966 of C:/Program Files/Apache 
  Group/Apache2/conf/httpd.conf:Cannot load C:/Program 
  Files/Apache 
  Group/Apache2/modules/mod_axis2.dll into server: The specified module 
  could not be found.Note the errors or messages above, and press the 
  ESC key to exit. 
  21...~httpd.conf:. 
  . . . . . . .LoadModule axis_module 
  modules/mod_axis2.dllLocation /axisSetHandler 
  axis/Location. . . . . . 
  . .mod_axis2.dll is located in C:\Program Files\Apache Group\Apache2\modules
  
  
  The same behaviour on all 
  Windows: 2000, XP,Server 
  2003.
  I made manual builds through DevStudio but it did not 
  help.
  Applying 
  regsvr32 mod_axis2.dll causes to the message: specified module could not be 
  found.
  
  What's wrong ?
  
  Thanks,Anton 
  Zotov.
  
  
  


RE: WSDD configuration problems

2004-10-13 Thread Anne Thomas Manes
One problem with your WSDL is that two of the elements in your Con type
reference a type (impl:ArrayOf_soapenc_string) that hasn't been defined:

element name=products nillable=true
type=impl:ArrayOf_soapenc_string/ 
element name=areas nillable=true type=impl:ArrayOf_soapenc_string/ 

As a result, any operation that exchanges the Con type or the ArrayOfCon
type won't work. You need to add a type definition for this type. (or add
addition typeMapping definitions in the wsdd for your string arrays.)

I assume that Axis generated a different namespace for the Con and
ArrayOfCon types because of your custom type mapping.

There's no problem with including an element called con within a complex
type called Con.

It's generally a bad idea to use overloaded methods with SOAP. Each SOAP
implementation handles them somewhat differently.

Do you still have the WSDL definition that Workshop generated? I suggest you
start your Axis project with the WSDL file rather than with your application
code. 

I also suggest that you switch to document/literal rather than rpc/encoded,
but from your last response, I gather that you're not interested in making
any significant changes.

Anne


From: Florian Theurich [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 12, 2004 5:10 PM
To: [EMAIL PROTECTED]
Subject: WSDD configuration problems

Hi there,

I posted a similar message last week, but I did not get any feedback. That’s
why I’ traing again…
I appended my WSDL to this email. Below you can find the entry within the
server-config.wsdd
for my service:

service name=ConService provider=java:RPC
    parameter name=allowedMethods value=* /
    parameter name=className value=com.xcell.ConService /

    beanMapping qname=ns:Con xmlns:ns=someService 
  languageSpecificType=java:com.xcell.Con / 
    
    typeMapping qname=ns:ArrayOfCon 
  xmlns:ns=someService
          type=java:com.xcell.Con[]
     
serializer=org.apache.axis.encoding.ser.ArraySerializerFactory
 
deserializer=org.apache.axis.encoding.ser.ArrayDeserializerFactory
  encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
/
  
/service

Now I have following questions:

1) Is there anything wrong concerning my approach in the WSDD?
2) Is it a problem to have a element named ‘con’ in a complex type named
‘Con’?
3) Why does my WDSL display the URL ‘http://xcell.com’ in following line of
the WSDL?Configuration problems…

wsdlsoap:body use=encoded
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=http://xcell.com/

4) Is it allowed to have overloaded operations for a web service as one of
my service’s method is overloaded!
5) Why do I get following error message in BEA Workshop 8.1 when trying to
create a Service Control based on the appended WSDL

WARNING: sampleWSDL.wsdl Line 0, Col 0: Operation getConInfo cannot be
called.
WARNING: sampleWSDL.wsdl Line 0, Col 0: Operation
getConInfoByYearAndProduct cannot be called.
WARNING: sampleWSDL.wsdl Line 0, Col 0: Operation
getConInfoByYearAndArea cannot be called.
WARNING: sampleWSDL.wsdl Line 0, Col 0: Operation getConInfoByArea
cannot be called.
WARNING: sampleWSDL.wsdl Line 0, Col 0: Operation getConInfoByProduct
cannot be called.
WARNING: sampleWSDL.wsdl Line 53, Col 0: WSDL warning: Schema type null
undefined.
WARNING: sampleWSDL.wsdl Line 59, Col 0: WSDL warning: Schema type null
undefined.
WARNING: sampleWSDL.wsdl Line 99, Col 0: WSDL warning: Schema type null
undefined.
WARNING: sampleWSDL.wsdl Line 105, Col 0: WSDL warning: Schema type null
undefined.
WARNING: sampleWSDL.wsdl Line 111, Col 0: WSDL warning: Schema type null
undefined.
WARNING: sampleWSDL.wsdl Line 125, Col 0: WSDL warning: Schema type null
undefined.
WARNING: sampleWSDL.wsdl Line 139, Col 0: WSDL warning: Schema type null
undefined.
WARNING: sampleWSDL.wsdl Line 145, Col 0: WSDL warning: Schema type null
undefined.

Can anyone out there help me please?
Thanks
Florian
 



Re: using axis from IP address as opposed to domain name

2004-10-13 Thread Paul Callahan
a good rule of thumb might be to change that port num.  i.e.--7001 is
default for weblogic and 8080 for tomcat... never hurts to conceal any
details that you dont have to give out...

-pc


On Wed, 13 Oct 2004 10:25:50 +0100, Suzy Fynes
[EMAIL PROTECTED] wrote:
 
 
 
  
 
  
 
 Hey,
 
  
 
 Can anyone tell me if there is any security risk with using axis directly
 from an ip address as opposed to having it accessed through a domain name,
 ie having it accessed from http://25.123.156.100:8080/axis as opposed to
 http://www.mydomainname.com/axis
 
  
 
 Thanks
 
 Suzy


Re: using axis from IP address as opposed to domain name

2004-10-13 Thread Anand Natrajan
Agreed re: port number change, but re: IP change, there's no real difference
which one you use. If that address is on the public internet, then anyone
can nslookup the IP address and get the machine name. If it's on an
intranet, then knowing the machine name gives you little advantage. Security
through obscurity is small comfort.

Anand

On Wed, 13 Oct 2004, Paul Callahan wrote:

: a good rule of thumb might be to change that port num.  i.e.--7001 is
: default for weblogic and 8080 for tomcat... never hurts to conceal any
: details that you dont have to give out...
:
: -pc
:
: On Wed, 13 Oct 2004 10:25:50 +0100, Suzy Fynes
: [EMAIL PROTECTED] wrote:
: 
:  Hey,
: 
:  Can anyone tell me if there is any security risk with using axis directly
:  from an ip address as opposed to having it accessed through a domain name,
:  ie having it accessed from http://25.123.156.100:8080/axis as opposed to
:  http://www.mydomainname.com/axis
: 
:  Thanks
: 
:  Suzy


FYI: I sent a note to WS-I regarding the bug in the 1.1 profile

2004-10-13 Thread Anne Thomas Manes


-Original Message-
From: Christopher B Ferris [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 13, 2004 1:57 PM
To: Anne Thomas Manes
Subject: Re: FW: Error in the Basic Profile

Thanks Anne! I've forwarded to the bpwg list and we'll add it to the 
errata.

Cheers,

Christopher Ferris
STSM, Emerging e-business Industry Architecture
email: [EMAIL PROTECTED]
blog: http://webpages.charter.net/chrisfer/blog.html
phone: +1 508 377 9295

Anne Thomas Manes [EMAIL PROTECTED] wrote on 10/13/2004 05:52:25 AM:

 Chris,
 
 There's a bug in one of the Correct samples in WS-I BP 1.1, in section 
4.7.21 Namespaces for 
 Children of Part Accessors [1]:
 
 According to the WSDL 1.1 specification [2] and the latest version of 
the WSDL 1.1 XML Schema [3],
 the definitions/binding/operation/input and 
definitions/binding/operation/output elements do not 
 include the @message attribute. 
 
 [1] 
http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#Namespaces_for
_Children_of_Part_Accessors
 [2] http://www.w3.org/TR/wsdl#_bindings 
 [3] http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd 
 
 But the sample in this section does include this attribute:
 
 binding name=BarSOAPBinding type=bar:BarPortType
soapbind:binding 
 transport=http://schemas.xmlsoap.org/soap/http/; 
 style=rpc/
operation name=BarOperation
  input message=bar:BarMsg
soapbind:body use=literal 
namespace=http://example.org/bar//
  /input
/operation
 /binding
 
 Anne



Local Service Call

2004-10-13 Thread Stevenson, Chris
Title: Message



Hello 
All,

Does anyone know 
if/how I can call a local service from within a service inside of the same AXIS 
instance?
Also is the 
container smart enough to know that if I'm calling a web service from within 
another webservice on the same box it will use the existing deployed service via 
straight java rather than encoding a soap call and serializing it etc 
etc...?

If it can't work it 
out can i configure it to do this?

Thanks for 
help,

Chris



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167





RE: Local Service Call

2004-10-13 Thread Lovell, Jim M
Title: Message



I am 
interested in this same thing. Can you let me know if you find a 
solution?

  -Original Message-From: Stevenson, Chris 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, October 13, 2004 
  9:23 AMTo: '[EMAIL PROTECTED]'Subject: Local 
  Service Call
  Hello 
  All,
  
  Does anyone know 
  if/how I can call a local service from within a service inside of the same 
  AXIS instance?
  Also is the 
  container smart enough to know that if I'm calling a web service from within 
  another webservice on the same box it will use the existing deployed service 
  via straight java rather than encoding a soap call and serializing it etc 
  etc...?
  
  If it can't work 
  it out can i configure it to do this?
  
  Thanks for 
  help,
  
  Chris
  The 
  information contained herein is confidential and is intended solely for 
  theaddressee. Access by any other party is unauthorised without the 
  expresswritten permission of the sender. If you are not the intended 
  recipient, pleasecontact the sender either via the company switchboard on 
  +44 (0)20 7623 8000, orvia e-mail return. If you have received this e-mail 
  in error or wish to read oure-mail disclaimer statement and monitoring 
  policy, please refer to http://www.drkw.com/disc/email/ or contact the 
  sender. 
  3167


This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to [EMAIL PROTECTED] and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("e-sign")
unless a specific statement to the contrary is included in this message.



RE: [*** Mogelijke SPAM ***] - RE: newbie: namespace error - Enco ded IP

2004-10-13 Thread Anne Thomas Manes
Because your schema specifies elementFormDefault=qualified, then all local
elements (including piClieNr2/piClieNr and
pcMedewerkermanager/pcMedewerker must be qualified with the
urn:tempura-org:RISC namespace. Child elements do not inherit the
parent's namespace unless the parent defines a default namespace (a
namespace declaration with no prefix specified, e.g.
xmlns=urn:tempura-org:RISC). The string you use for the prefix doesn't
matter, but it makes the application more readable if you use the same
prefix as the one used in the WSDL document (S2).

So that means you need to include the namespace information on your two
sub-elements, e.g.,:

Name clientNummerName = sf.createName(piClieNr, S2,
urn:tempuri-org:RISC); 

Alternatively, you can define a default namespace on the parent element, and
then you don't need to specify namespaces on the child elements.

Anne


-Original Message-
From: Kransen, J. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 12, 2004 11:57 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [*** Mogelijke SPAM ***] - RE: newbie: namespace error - Enco
ded IP

Hi, thanks for your response.

I tried to prefix those elements as well, but the error message remains the
same. I assume from the WSDL that the prefix should be S2, but if you take a
look at it, can you confirm that that is the right prefix? I tried a lot of
strings from this WSDL as prefix, with no difference. 

?xml version=1.0 encoding=UTF-8 ? 
wsdl:definitions name=RISC targetNamespace=urn:tempuri-org
xmlns:tns=urn:tempuri-org xmlns:S2=urn:tempuri-org:RISC
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:S1=http://www.tempuri.org/wsa/wsa1;
xmlns=http://schemas.xmlsoap.org/wsdl/;
  wsdl:documentationAuthor=JHE, EncodingType=DOC_LITERAL,
Proxygen_Product=Progress Version 10.0A/wsdl:documentation 
wsdl:types
schema elementFormDefault=unqualified
targetNamespace=http://www.tempuri.org/wsa/wsa1;
xmlns=http://www.w3.org/2001/XMLSchema;
element name=FaultDetail
complexType
sequence
  element name=errorMessage type=xsd:string / 
  element name=requestID type=xsd:string / 
  /sequence
  /complexType
  /element
  /schema
schema elementFormDefault=qualified
targetNamespace=urn:tempuri-org:RISC
xmlns=http://www.w3.org/2001/XMLSchema;
complexType name=fetchClientRISc_ttClieRow
sequence
  element name=clienrv nillable=true type=xsd:int / 
  element name=clievl nillable=true type=xsd:string / 
  element name=clienmv nillable=true type=xsd:string / 
  element name=clievv nillable=true type=xsd:string / 
  element name=clienma nillable=true type=xsd:string / 
  element name=cliedtg nillable=true type=xsd:string / 
  element name=clienmplts nillable=true type=xsd:string / 
  element name=clieingesl nillable=true type=xsd:string / 
  element name=landom nillable=true type=xsd:string / 
  element name=landomoud nillable=true type=xsd:string / 
  element name=opdrgv nillable=true type=xsd:string / 
  element name=parketnr nillable=true type=xsd:string / 
  element name=delictcode1 nillable=true type=xsd:string / 
  element name=delictom1 nillable=true type=xsd:string / 
  element name=delictcode2 nillable=true type=xsd:string / 
  element name=delictom2 nillable=true type=xsd:string / 
  /sequence
  /complexType
complexType name=fetchClientRISc_ttClieParam
sequence
  element maxOccurs=unbounded minOccurs=0 name=ttClieRow
type=S2:fetchClientRISc_ttClieRow / 
  /sequence
  /complexType
element name=fetchClientRISc
complexType
sequence
  element name=piClieNr type=xsd:int / 
  element name=pcMedewerker type=xsd:string / 
  /sequence
  /complexType
  /element
element name=fetchClientRIScResponse
complexType
sequence
  element name=result nillable=true type=xsd:string / 
  element name=ttClie type=S2:fetchClientRISc_ttClieParam / 
  /sequence
  /complexType
  /element
  /schema
  /wsdl:types
wsdl:message name=RISC_fetchClientRISc
  wsdl:part name=parameters element=S2:fetchClientRISc / 
  /wsdl:message
wsdl:message name=RISC_fetchClientRIScResponse
  wsdl:part name=parameters element=S2:fetchClientRIScResponse / 
  /wsdl:message
wsdl:message name=FaultDetailMessage
  wsdl:part name=FaultDetail element=S1:FaultDetail / 
  /wsdl:message
wsdl:portType name=RISCObj
wsdl:operation name=fetchClientRISc
  wsdl:input message=tns:RISC_fetchClientRISc / 
  wsdl:output message=tns:RISC_fetchClientRIScResponse / 
  wsdl:fault name=RISCFault message=tns:FaultDetailMessage / 
  /wsdl:operation
  /wsdl:portType
wsdl:binding name=RISCObj type=tns:RISCObj
  soap:binding style=document
transport=http://schemas.xmlsoap.org/soap/http; / 
wsdl:operation name=fetchClientRISc
  soap:operation soapAction= style=document / 
wsdl:input
  soap:body use=literal / 
  /wsdl:input
wsdl:output
  soap:body use=literal / 
  /wsdl:output
wsdl:fault name=RISCFault
  soap:fault name=RISCFault use=literal / 
  /wsdl:fault
  

HashMap problem

2004-10-13 Thread Dalibor Dostl
Hello all,
I need help with following problem: when invoking remote axis web 
service with Hashmap argument, from time to time it doesnt succeed
on remote side with this message

java.lang.IllegalArgumentException: object is not an instance of 
declaring class
20041013 15:07:23 [S]VFRA: Tried to invoke method public 
java.util.HashMap WebSluzbyFlat.zpracujPozadavek(java.util.HashMap) with 
arguments java.util.HashMap.
The arguments do not match the signature.; nested exception is:
java.lang.IllegalArgumentException: object is not an instance of 
declaring class

We are using java 1.3.1 and axis 1.2RC1 on AIX 4.3.3.
Thanks in advance
Dalibor Dostl


Object lists in axis

2004-10-13 Thread Suzy Fynes








Hey,



Have a question, I have an object containing loads of
information on a person e.g name, phone number, address etc I want to send
someone a list of these people using axis. I store the list in an ArrayList
containing objects of each person. Seen as ArrayLists
are just for java its not good for a web service, so I
created an array of objects. Now considering it has to be generic the objects
can only be Strings, Integers etc 



So my question is how can I return more than one piece of
information using only Data type objects? Currently all web services ive
deployed only use access one method, could I have say 5 methods all returning
different information of the person. Ie. one method returns all the names, second one returns all
phone numbers etc



Any help would be great!

Thanks,

Sue










RE: Object lists in axis

2004-10-13 Thread Stevenson, Chris
Title: Message



Use an 
array of javabeans, beans are serializable without any trouble using BeanSerializer.

Create 
a bean called Person which contains getters/setters for each property plus a 
default empty constructor.

http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/BeanSerializer.html

You 
will have to create an entry in web.xml though, telling axis to use bean 
serializer for your service (i think).

HTH,

Chris

  
  -Original Message-From: Suzy Fynes 
  [mailto:[EMAIL PROTECTED] Sent: 13 October 2004 
  16:54To: [EMAIL PROTECTED]Subject: Object lists in 
  axis
  
  Hey,
  
  Have a question, I have an object 
  containing loads of information on a person e.g name, phone number, address 
  etc I want to send someone a list of these people using axis. I store the list 
  in an ArrayList containing objects of each person. Seen as ArrayLists are just for java its 
  not good for a web service, so I created an array of objects. Now considering 
  it has to be generic the objects can only be Strings, Integers etc 
  
  
  So my question is how can I return 
  more than one piece of information using only Data type objects? Currently all 
  web services ive deployed only use access one method, could I have say 5   methods all returning different information of the person. Ie. one method returns all the 
  names, second one returns all phone numbers etc
  
  Any help would be 
  great!
  Thanks,
  Sue
  


The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167





RE: Object lists in axis

2004-10-13 Thread THOMAS, JAI [AG-Contractor/1000]



Suzy,
You 
can define a custom serialization for your Person object and return array of 
Person objects. Or write Person as a pure java bean and use BeanSerialization. 
You can find lots of discussion on serialization in this forum. 


Having 
seperate service for each method would be a week and 
unfriendlyinterface.

Thanks
Jai

  -Original Message-From: Suzy Fynes 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, October 13, 
  2004 10:54 AMTo: [EMAIL PROTECTED]Subject: Object 
  lists in axis
  
  Hey,
  
  Have a question, I have an object 
  containing loads of information on a person e.g name, phone number, address 
  etc I want to send someone a list of these people using axis. I store the list 
  in an ArrayList containing objects of each person. Seen as ArrayLists are just for java its 
  not good for a web service, so I created an array of objects. Now considering 
  it has to be generic the objects can only be Strings, Integers etc 
  
  
  So my question is how can I return 
  more than one piece of information using only Data type objects? Currently all 
  web services ive deployed only use access one method, could I have say 5 
  methods all returning different information of the person. Ie. one method returns all the 
  names, second one returns all phone numbers etc
  
  Any help would be 
  great!
  Thanks,
  Sue
  


Re: Object lists in axis

2004-10-13 Thread Praveen Peddi



I think the best way to do it is convert your 
ArrayList of java objects into an xml document and return. If your xml document 
is too big, you could stream it as outputstream, so you don't have to load all 
the data into memory. Having multiple methods, one for each field of 
information, does not look like a nicer design.

Praveen

  - Original Message - 
  From: 
  Suzy Fynes 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, October 13, 2004 11:53 
  AM
  Subject: Object lists in axis
  
  
  Hey,
  
  Have a question, I have an object 
  containing loads of information on a person e.g name, phone number, address 
  etc I want to send someone a list of these people using axis. I store the list 
  in an ArrayList containing objects of each person. Seen as ArrayLists are just for java its 
  not good for a web service, so I created an array of objects. Now considering 
  it has to be generic the objects can only be Strings, Integers etc 
  
  
  So my question is how can I return 
  more than one piece of information using only Data type objects? Currently all 
  web services ive deployed only use access one method, could I have say 5 
  methods all returning different information of the person. Ie. one method returns all the 
  names, second one returns all phone numbers etc
  
  Any help would be 
  great!
  Thanks,
  Sue
  


Migrating from Apache SOAP to Axis

2004-10-13 Thread Shukla, Minaxi
Hi,

I want to migrate our web services deployed on Apache SOAP 2.2 to Axis 1.1 without 
having to update the client developed with Apache SOAP.

It works fine with good scenarios where the service returns a successful respose. But, 
when service throws a business exception, the client gets ClassCastException :

java.lang.ClassCastException : org.apache.xerces.dom.DeferredElementNSImpl

I looked into Apache SOAP source code and found that the detailEntry is not 
deserialized because of missing encoding style in the response. I added a line to 
print the exception in Fault class unmarshall() method (the catch Exception block):

Exception while unmarshalling Fault : java.lang.IllegalArgumentException: No 
Deserializer found to deserialize a 
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style 'null'.

So, looks like Axis is not returning the encodingStyle in response. I don't know how 
to fix that.

Attached is the deployment descriptor for the service.

Thanks in advance for any help.

-Minaxi
 GeoRoute.wsdd 


GeoRoute.wsdd
Description: GeoRoute.wsdd


RE: Object lists in axis

2004-10-13 Thread Pridemore, Russell (MAN-Corporate)



I 
return lists of objects like this:

types
 
xsd:schema targetNamespace="http://..."
 xsd:complexType 
name="person"
 
xsd:sequence
 xsd:element name="name" 
type="xsd:string"/
 xsd:element name="address" 
type="xsd:string" maxOccurs="2"/
 xsd:element name="city" 
type="xsd:string"/
 xsd:element name="state" 
type="xsd:string"/
 xsd:element name="zip" type="xsd:string"/
 /xsd:sequence
 /xsd:complexType

 xsd:complexType 
name="personList"
 xsd:sequence
 xsd:element name="people" 
type="my:person" minOccurs="0" maxOccurs="unbounded"/

 /xsd:sequence
 /xsd:complexType
/types

message name="GetPersonRequest"
 
part name="key" type="..."/
/message
message name="GetPersonResponse"
 
part name="persons" type="my:personList"/
/message

Hope 
this helps,
Russ

  -Original Message-From: Suzy Fynes 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, October 13, 
  2004 11:54 AMTo: [EMAIL PROTECTED]Subject: Object 
  lists in axis
  
  Hey,
  
  Have a question, I have an object 
  containing loads of information on a person e.g name, phone number, address 
  etc I want to send someone a list of these people using axis. I store the list 
  in an ArrayList containing objects of each person. Seen as ArrayLists are just for java its 
  not good for a web service, so I created an array of objects. Now considering 
  it has to be generic the objects can only be Strings, Integers etc 
  
  
  So my question is how can I return 
  more than one piece of information using only Data type objects? Currently all 
  web services ive deployed only use access one method, could I have say 5 
  methods all returning different information of the person. Ie. one method returns all the 
  names, second one returns all phone numbers etc
  
  Any help would be 
  great!
  Thanks,
  Sue
  


RE: Object lists in axis

2004-10-13 Thread Suzy Fynes
Title: Message









Would this still work if the client of the
service was a java one?





-Original Message-
From: Stevenson, Chris
[mailto:[EMAIL PROTECTED] 
Sent: 13 October 2004 17:02
To: '[EMAIL PROTECTED]'
Subject: RE: Object lists in axis





Use an
array of javabeans, beans are serializable without any trouble using
BeanSerializer.











Create a
bean called Person which contains getters/setters for each property plus a
default empty constructor.











http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/BeanSerializer.html











You will
have to create an entry in web.xml though, telling axis to use bean
serializer for your service (i think).











HTH,











Chris





-Original Message-
From: Suzy Fynes
[mailto:[EMAIL PROTECTED] 
Sent: 13 October 2004 16:54
To: [EMAIL PROTECTED]
Subject: Object lists in axis

Hey,



Have a question, I have an object
containing loads of information on a person e.g name, phone number, address etc
I want to send someone a list of these people using axis. I store the list in
an ArrayList containing objects of each person. Seen as ArrayLists are just for
java its not good for a web service, so I created an array of objects. Now
considering it has to be generic the objects can only be Strings, Integers etc 



So my question is how can I return
more than one piece of information using only Data type objects? Currently all
web services ive deployed only use access one method, could I have say 5
methods all returning different information of the person. Ie. one method
returns all the names, second one returns all phone numbers etc



Any help would be great!

Thanks,

Sue








The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000,
or
via e-mail return. If you have received this e-mail in error or wish to read
our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167









Migration from Apache SOAP to Axis

2004-10-13 Thread Shukla, Minaxi
(Sending the message again without attachment.)

I want to migrate our web services deployed on Apache SOAP 2.2 to Axis 1.1 without 
having to update the client developed with Apache SOAP.

It works fine with good scenarios where the service returns a successful respose. But, 
when service throws a business exception, the client gets ClassCastException :

java.lang.ClassCastException : org.apache.xerces.dom.DeferredElementNSImpl

I looked into Apache SOAP source code and found that the detailEntry is not 
deserialized because of missing encoding style in the response. I added a line to 
print the exception in Fault class unmarshall() method (the catch Exception block):

Exception while unmarshalling Fault : java.lang.IllegalArgumentException: No 
Deserializer found to deserialize a 
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style 'null'.

So, looks like Axis is not returning the encodingStyle in response. I don't know how 
to fix that.

Thanks in advance for any help.

-Minaxi


how to use message-style services in Axis

2004-10-13 Thread Thomas Forrester

Does anyone out there use the message style services?
I am having real problems just trying to get a simple solution working
with nested elements.
The TestMsg.java example works OK to send individual elements (without
children).
I can not find any references on how to use implement the Document
method(Document body) mentioned in the Axis users guide.

Doe nobody use this part of the API?
Would I be better off using the JAXM approach?

I would really appreciate some help in getting started done the right
track on this.

Many thanks...


RE: Object lists in axis

2004-10-13 Thread Stevenson, Chris
Title: Message



Was or 
wasn't? If would work whateverif you generated your client from the WSDL 
which you intern generated from your service class. We return tree structures 
and all manner of stuff from java to dotnet as long asclasses are beans 
and are correctly described in WSDL. Can't speak for untyped clients however, 
that might need some investigating.

  
  -Original Message-From: Suzy Fynes 
  [mailto:[EMAIL PROTECTED] Sent: 13 October 2004 
  17:11To: [EMAIL PROTECTED]Subject: RE: Object   lists in axis
  
  Would this still work 
  if the client of the service was a java one?
  
  
  -Original 
  Message-From: Stevenson, 
  Chris [mailto:[EMAIL PROTECTED] Sent: 13 October 
  2004 17:02To: '[EMAIL PROTECTED]'Subject: RE: Object lists in 
  axis
  
  
  Use an 
  array of javabeans, beans are serializable without any trouble using 
  BeanSerializer.
  
  
  
  Create a 
  bean called Person which contains getters/setters for each property plus a 
  default empty constructor.
  
  
  
  http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/BeanSerializer.html
  
  
  
  You will 
  have to create an entry in web.xml though, telling axis to use bean   serializer for your service (i think).
  
  
  
  HTH,
  
  
  
  Chris
  
-Original 
Message-From: Suzy 
Fynes [mailto:[EMAIL PROTECTED] Sent: 13 October 
2004 16:54To: [EMAIL PROTECTED]Subject: Object lists in 
axis
Hey,

Have a question, I have an 
object containing loads of information on a person e.g name, phone number, 
address etc I want to send someone a list of these people using axis. I store the list in an ArrayList containing objects of each person. Seen as 
ArrayLists are just for java its not good for a web service, so I created an 
array of objects. Now considering it has to be generic the objects can only 
be Strings, Integers etc 

So my question is how can I 
return more than one piece of information using only Data type objects? Currently all web services ive deployed only use access one method, could I 
have say 5 methods all returning different information of the person. Ie. 
one method returns all the names, second one returns all phone numbers etc

Any help would be 
great!
Thanks,
Sue

  The 
  information contained herein is confidential and is intended solely for   theaddressee. Access by any other party is unauthorised without the   expresswritten permission of the sender. If you are not the intended   recipient, pleasecontact the sender either via the company switchboard on 
  +44 (0)20 7623 8000, orvia e-mail return. If you have received this e-mail 
  in error or wish to read oure-mail disclaimer statement and monitoring 
  policy, please refer to http://www.drkw.com/disc/email/ or contact the 
  sender. 
  3167


The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3166





RE: Object lists in axis

2004-10-13 Thread Suzy Fynes









Thanks for your help! 

How would I reference this to a java class
or would I have to write the soap manually?



-Original Message-
From: Pridemore, Russell
(MAN-Corporate) [mailto:[EMAIL PROTECTED] 
Sent: 13 October 2004 17:07
To: '[EMAIL PROTECTED]'
Subject: RE: Object lists in axis





I return
lists of objects like this:











types






xsd:schema targetNamespace=http://...






xsd:complexType name=person






xsd:sequence






xsd:element name=name type=xsd:string/






xsd:element name=address type=xsd:string
maxOccurs=2/






xsd:element name=city type=xsd:string/






xsd:element name=state type=xsd:string/






xsd:element name=zip type=xsd:string/






/xsd:sequence






/xsd:complexType












xsd:complexType name=personList






xsd:sequence






xsd:element name=people type=my:person
minOccurs=0 maxOccurs=unbounded/








/xsd:sequence






/xsd:complexType





/types











message
name=GetPersonRequest






part name=key type=.../





/message





message
name=GetPersonResponse






part name=persons type=my:personList/





/message











Hope
this helps,





Russ







-Original Message-
From: Suzy Fynes
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 11:54 AM
To: [EMAIL PROTECTED]
Subject: Object lists in axis

Hey,



Have a question, I have an object
containing loads of information on a person e.g name, phone number, address etc
I want to send someone a list of these people using axis. I store the list in
an ArrayList containing objects of each person. Seen as ArrayLists are just for
java its not good for a web service, so I created an array of objects. Now
considering it has to be generic the objects can only be Strings, Integers etc 



So my question is how can I return
more than one piece of information using only Data type objects? Currently all
web services ive deployed only use access one method, could I have say 5
methods all returning different information of the person. Ie. one method
returns all the names, second one returns all phone numbers etc



Any help would be great!

Thanks,

Sue












RE: Object lists in axis

2004-10-13 Thread Suzy Fynes
Title: Message









Great! So if the client is in .NET do I just
write my bean as normal extending serializable and
deploy it as a WSDD or jws??



Thanks for your help!



-Original Message-
From: Stevenson, Chris [mailto:[EMAIL PROTECTED]

Sent: 13 October 2004 17:17
To: '[EMAIL PROTECTED]'
Subject: RE: Object lists in axis





Was or
wasn't? If would work whateverif you generated your client from the WSDL
which you intern generated from your service class. We return tree structures
and all manner of stuff from java to dotnet as long asclasses are beans
and are correctly described in WSDL. Can't speak for untyped clients however,
that might need some investigating.





-Original Message-
From: Suzy Fynes
[mailto:[EMAIL PROTECTED] 
Sent: 13 October 2004 17:11
To: [EMAIL PROTECTED]
Subject: RE: Object lists in axis

Would
this still work if the client of the service was a java one?





-Original Message-
From: Stevenson, Chris
[mailto:[EMAIL PROTECTED] 
Sent: 13 October 2004 17:02
To: '[EMAIL PROTECTED]'
Subject: RE: Object lists in axis





Use an
array of javabeans, beans are serializable without any trouble using
BeanSerializer.











Create a
bean called Person which contains getters/setters for each property plus a default
empty constructor.











http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/BeanSerializer.html











You will
have to create an entry in web.xml though, telling axis to use bean
serializer for your service (i think).











HTH,











Chris





-Original Message-
From: Suzy Fynes
[mailto:[EMAIL PROTECTED] 
Sent: 13 October 2004 16:54
To: [EMAIL PROTECTED]
Subject: Object lists in axis

Hey,



Have a question, I have an object
containing loads of information on a person e.g name, phone number, address etc
I want to send someone a list of these people using axis. I store the list in
an ArrayList containing objects of each person. Seen as ArrayLists are just for
java its not good for a web service, so I created an array of objects. Now
considering it has to be generic the objects can only be Strings, Integers etc 



So my question is how can I return
more than one piece of information using only Data type objects? Currently all
web services ive deployed only use access one method, could I have say 5
methods all returning different information of the person. Ie. one method
returns all the names, second one returns all phone numbers etc



Any help would be great!

Thanks,

Sue








The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000,
or
via e-mail return. If you have received this e-mail in error or wish to read
our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167







The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please

contact the sender either via the company switchboard on +44 (0)20 7623 8000,
or
via e-mail return. If you have received this e-mail in error or wish to read
our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3166









Query Strings?

2004-10-13 Thread Greg Hess








Hi All,



For testing I would like to invoke a service method using
the query string support with the AxisServlet. I have tested a couple simple
method invocations successfully but it seems when I test methods that have more
that one argument things get a little funny. 



For example, two methods my service publishes are:



public boolean exists(String instanceId);



public void clone(String idOriginal, String idDestination,
String termsName, String resourceName);





If I test the exists method with the following url it works
fine:



http://my.domain/services/ServerService?method=existsinstanceId=someId



If I test the clone method it seems to get mixed up with the
parameters specified and arguments passed with the following url;



http://my.domain/services/ServerService?method=cloneidOriginal=existingIdidDestination=newIdtermsName=someTermresourceName=someResource



The errors that result from the clone test indicate that the
parameter idOriginal does not reference a valid id, but this is not the case.
For fun I swapped the values for idOriginal and idDestination and the method
execution was a success. 



So I am not sure what I am doing wrong and would greatly
appreciate any suggestions/comments.



Does the AxisServlet support more than one query string
method argument and does my test url meet the proper usage requirements?



Many thanks for your help,



-Greg



Greg Hess

Software Engineer

Wrapped Apps Corporation

Kanata Square

260 Hearst Way  Suite 401

Ottawa, ON K24 3H1

P- 613-591-7552 ext 230

F- 613-591-0523

www.wrappedapps.com












image001.gif

Re: WSDL2Java and Basic Profile

2004-10-13 Thread Dan Ciarniello
Anne,
Thanks for the info.  I had to make a few minor changes to what you sent 
(I've attached a corrected version below) but that gave me enough to 
work with.  Except for one problem...

WSDL2Java produces both client and server code without apparent problem 
but when I invoke the service I get a NullPointerException.  I wonder if 
this is a problem with empty namespaces.  The response from the server 
looks like this:

soapenv:Envelope 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:Body
 getObjectResponse xmlns=http://cityxpress.com/external;
thedate xsi:type=xsd:dateTime 
xmlns=2004-10-13T16:30:38.953Z/thedate
avalue xsi:type=xsd:int xmlns=0/avalue
 /getObjectResponse
  /soapenv:Body
/soapenv:Envelope

I'm wondering if the xmlns= in response values are the problem.  
Should the xmlns attribute even be there?  If so, shouldn't it be 
http://cityxpress.com/external?

Thanks,
Dan.
Corrected WSDL:
?xml version=1.0 encoding=UTF-8?
wsdl:definitions targetNamespace=http://cityxpress.com/external;
 xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:tns=http://cityxpress.com/external;
 wsdl:types
   xsd:schema targetNamespace=http://cityxpress.com/external;
 xsd:element name=getObject type=tns:GetObjectType/
  xsd:complexType name=GetObjectType
   xsd:sequence
 xsd:element name=id type=xsd:string/
   /xsd:sequence
 /xsd:complexType
 xsd:element name=getObjectReturn type=tns:CXObjectType/ 
 xsd:complexType name=CXObjectType
   xsd:sequence
 xsd:element name=thedate type=xsd:dateTime/
 xsd:element name=avalue type=xsd:int/
   /xsd:sequence
 /xsd:complexType
   /xsd:schema
 /wsdl:types
 wsdl:message name=getObjectRequest
   wsdl:part name=parameters element=tns:getObject/
 /wsdl:message
 wsdl:message name=getObjectResponse
   wsdl:part name=parameters element=tns:getObjectReturn/
 /wsdl:message
 wsdl:portType name=XMTestPortType
   wsdl:operation name=getObject
 wsdl:input message=tns:getObjectRequest/
 wsdl:output message=tns:getObjectResponse/
   /wsdl:operation
 /wsdl:portType
 wsdl:binding name=XMTestBinding type=tns:XMTestPortType
   soap:binding style=document
 transport=http://schemas.xmlsoap.org/soap/http//
   wsdl:operation name=getObject
 soap:operation soapAction=/
 wsdl:input
   soap:body use=literal/
 /wsdl:input
 wsdl:output
   soap:body use=literal/
 /wsdl:output
   /wsdl:operation
 /wsdl:binding
 wsdl:service name=XMTest
   wsdl:port name=XMTest binding=tns:XMTestBinding
 soap:address location=http://localhost:8080/v01/XMTest/
   /wsdl:port
 /wsdl:service
/wsdl:definitions


begin:vcard
fn:Dan Ciarniello
n:Ciarniello;Dan
org:CityXpress Corp
adr;dom:;;200 - 1727 West Broadway;Vancouver;BC;V6J 4W5
email;internet:[EMAIL PROTECTED]
title:Software Developer
tel;work:604-638-3800 ext. 322
x-mozilla-html:TRUE
url:http://www.cityxpress.com
version:2.1
end:vcard



RE: Object lists in axis

2004-10-13 Thread Stevenson, Chris
Title: Message



Suzy,

Might 
want to check this out, it should offer all the answers.

http://www.javaworld.com/javaworld/jw-04-2003/jw-0411-axis.html

Chris

  
  -Original Message-From: Suzy Fynes 
  [mailto:[EMAIL PROTECTED] Sent: 13 October 2004 
  17:23To: [EMAIL PROTECTED]Subject: RE: Object   lists in axis
  
  Great! So if the 
  client is in .NET do I just write my bean as normal extending serializable and deploy it as a WSDD or jws??
  
  Thanks for your 
  help!
  
  -Original 
  Message-From: Stevenson, 
  Chris [mailto:[EMAIL PROTECTED] Sent: 13 October 
  2004 17:17To: '[EMAIL PROTECTED]'Subject: RE: Object lists in 
  axis
  
  
  Was or 
  wasn't? If would work whateverif you generated your client from the WSDL 
  which you intern generated from your service class. We return tree structures 
  and all manner of stuff from java to dotnet as long asclasses are beans 
  and are correctly described in WSDL. Can't speak for untyped clients however, 
  that might need some investigating.
  
-Original 
Message-From: Suzy 
Fynes [mailto:[EMAIL PROTECTED] Sent: 13 October 
2004 17:11To: [EMAIL PROTECTED]Subject: RE: Object lists in 
axis
Would 
this still work if the client of the service was a java 
one?


-Original 
Message-From: Stevenson, Chris [mailto:[EMAIL PROTECTED] Sent: 13 October 
2004 17:02To: 
'[EMAIL PROTECTED]'Subject: RE: Object lists in 
axis


Use an 
array of javabeans, beans are serializable without any trouble using 
BeanSerializer.



Create 
a bean called Person which contains getters/setters for each property plus a 
default empty constructor.



http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/BeanSerializer.html



You 
will have to create an entry in web.xml though, telling axis to use 
bean serializer for your service (i 
think).



HTH,



Chris
-Original 
  Message-From: Suzy 
  Fynes [mailto:[EMAIL PROTECTED] Sent: 13 October 
  2004 16:54To: 
  [EMAIL PROTECTED]Subject: Object lists in 
  axis
  Hey,
  
  Have a question, I have an 
  object containing loads of information on a person e.g name, phone number, 
  address etc I want to send someone a list of these people using axis. I 
  store the list in an ArrayList containing objects of each person. Seen as 
  ArrayLists are just for java its not good for a web service, so I created 
  an array of objects. Now considering it has to be generic the objects can 
  only be Strings, Integers etc 
  
  So my question is how can I 
  return more than one piece of information using only Data type objects? 
  Currently all web services ive deployed only use access one method, could 
  I have say 5 methods all returning different information of the person. 
  Ie. one method returns all the names, second one returns all phone numbers 
  etc
  
  Any help would be 
  great!
  Thanks,
  Sue
  
The 
information contained herein is confidential and is intended solely for theaddressee. Access by any other party is unauthorised without the 
expresswritten permission of the sender. If you are not the intended 
recipient, pleasecontact the sender either via the company switchboard 
on +44 (0)20 7623 8000, orvia e-mail return. If you have received this 
e-mail in error or wish to read oure-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or 
contact the sender. 
3167
  The 
  information contained herein is confidential and is intended solely for   theaddressee. Access by any other party is unauthorised without the   express written permission of the sender. If you are not the intended 
  recipient, please contact the sender either via the company switchboard on 
  +44 (0)20 7623 8000, orvia e-mail return. If you have received this e-mail 
  in error or wish to read oure-mail disclaimer statement and monitoring 
  policy, please refer to http://www.drkw.com/disc/email/ or contact the 
  sender. 
  3166


The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 

Performance of 1.2 vs 1.1

2004-10-13 Thread Dan Ciarniello
I've taken a very simple web service and deployed it using Axis 1.1 and 
Axis 1.2 (RC1) on Tomcat 4.1.30 on a Linux machine (Fedora Core 1) and 
done some rough performance tests.  My tests show that Axis 1.2 takes at 
least twice as long to process requests as Axis 1.1.  This is of great 
concern.  All the other advantages of 1.2 aside, this sort of 
performance hit would prevent my company from moving to 1.2.  Is there 
any work going on to deal with this issue?  Is it even possible to get 
1.2 to approach 1.1's performance?

Thanks,
Dan.
begin:vcard
fn:Dan Ciarniello
n:Ciarniello;Dan
org:CityXpress Corp
adr;dom:;;200 - 1727 West Broadway;Vancouver;BC;V6J 4W5
email;internet:[EMAIL PROTECTED]
title:Software Developer
tel;work:604-638-3800 ext. 322
x-mozilla-html:TRUE
url:http://www.cityxpress.com
version:2.1
end:vcard



Losing Null Values When Making RPC Call

2004-10-13 Thread Pat Young
All,

I am invoking an RPC call to the
org.apache.axis.client.Call class by calling the
invoke(Object[]) method.  The call is executing a SQL
query that returns columns of data back to my client
in the form of a SOAPResultSet.  The problem I am
having is that null columns are being left out of the
result set.  The metadata however contains reference
to all of the columns whether they are null or not. 
Has anyone seen this problem or aware of a solution? 
I searched the archives, but did not find anything
there.

Thanks,
Pat



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Performance of 1.2 vs 1.1

2004-10-13 Thread Davanum Srinivas
Please log a jira bug witjh your test case and performance numbers.

thanks,
dims


On Wed, 13 Oct 2004 13:16:01 -0700, Dan Ciarniello
[EMAIL PROTECTED] wrote:
 I've taken a very simple web service and deployed it using Axis 1.1 and
 Axis 1.2 (RC1) on Tomcat 4.1.30 on a Linux machine (Fedora Core 1) and
 done some rough performance tests.  My tests show that Axis 1.2 takes at
 least twice as long to process requests as Axis 1.1.  This is of great
 concern.  All the other advantages of 1.2 aside, this sort of
 performance hit would prevent my company from moving to 1.2.  Is there
 any work going on to deal with this issue?  Is it even possible to get
 1.2 to approach 1.1's performance?
 
 Thanks,
 Dan.
 
 
 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


SSL Client Auth with Tomcat and Axis

2004-10-13 Thread Jim Wong
On a somewhat related note, I'm just getting started on trying to build
an application using Axis, Tomcat and SSL.  I would like to use client
authentication, but I haven't been able to find documentation that
explains how (assuming it's possible) one could access information from
the client's certificate from within a web service or handler.

Am I missing something blindingly obvious?  As I mentioned, I'm new to
this, so it's distinctly possible...

--
Jim Wong ([EMAIL PROTECTED])
 
-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 12, 2004 5:58 AM
To: '[EMAIL PROTECTED]'
Subject: RE: 2 way SSL with Axis and Tomcat as a Service

I pretty much used this guide (and the new chapter it links to) to do
it.

http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html

Pretty much everything you need to know is in the SSL section of the new
chapter.  It starts on page 16 of the pdf.  You gen your keystores and
truststores, making sure to place them on the appropriate machines.
Then change server.xml.  I didn't use JCEKS and all of my stuff works.
The hard part was installing Tomcat as a service with the truststore
attribute set.
For some reason, Tomcat doesn't let you set it in server.xml.  Then you
just modify your client to use https and include the keystore and
truststore.
Other than a typo, the CL version worked perfectly.  I had to just play
around with tomcat.exe to get it installed as a service, tho.

Chris

-Original Message-
From: Silvano Maffeis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 2:30 AM
To: [EMAIL PROTECTED]
Subject: Re: 2 way SSL with Axis and Tomcat as a Service


Hubble, Christopher wrote:

Welp, after much trial and tribulation, I finally got axis using 2 way
ssl.
This required me to custom set up tomcat as a service, and I finally 
got that working.  Once I get my code all cleaned up, I'll post the 
relavent details.

Chris
  

That would be much appreciated, thanks :-)

Silvano


This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, do not forward
this email to any other person, delete this
e-mail and destroy all copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.