Re: href inside response??

2003-08-20 Thread Denero Watz
So are you saying that these hrefs will not come in the case of document style encoding??Sanjay Krishnamurthi [EMAIL PROTECTED] wrote:
There is an element in your response (i think it isccref) which has id of ccid0. Other elements aresimply referring/pointing to it. Whenever you have aservice that uses SOAP encoding, you are likely to seehrefs. You can look into the SOAP spec for moredetails.Sanjay--- Denero Watz <[EMAIL PROTECTED]>wrote: I got an error while sending it last time. So resending it. dw  Denero Watz <[EMAIL PROTECTED]>wrote: I am trying to invoke a public web servicehttp://live.capescience.com/wsdl/AirportWeather.wsdl. The method I am invoking is getSummary. It returns a complex type, each field is of string type. But for some invalid inputs to this method, I saw it returns the o/p like below. I don't understnd what this href="" is refering to?
   Response from the server for an invalid input(e.g. KK) .  

Re: MapDeserializer: HashMap empty

2003-08-20 Thread Michael Konietzka
On Fri, Aug 15, 2003 at 01:26:12PM +0200, Michael Konietzka wrote:
 Hi,
 i am regarding problems with deserialization to a HashMap within an AXIS
 Client. Server is a PHP-SOAP-Service, self developed from someone else.
[..]
 What is wrong?
 Maybe someone can provide some XML of a SOAP-Response, which works with
 MapDeserializer.

Ok, I created a webservices with MapSerializer to see the generated
Axis-Response when dealing with HashMaps:

?xml version=1.0 encoding=UTF-8?
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
  getUserFromSessionResponse 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   getUserFromSessionReturn 
xsi:type=ns1:de.schlund.webservices.methadon.MethadonLoginReturnValue 
xmlns:ns1=http://xp-framework.net/xmlns/xp;
status xsi:type=xsd:stringOK/status
user xsi:type=ns1:de.schlund.webservices.methadon.MethadonLoginUser
 department xsi:type=xsd:anyType xsi:nil=true/
 email xsi:type=xsd:string[EMAIL PROTECTED]/email
 fullname xsi:type=xsd:stringMichael Konietzka/fullname
 permissions xsi:type=xsd:anyType xsi:nil=true/
 phone xsi:type=xsd:string xsi:nil=true/
 properties xsi:type=ns2:Map xmlns:ns2=http://xml.apache.org/xml-soap;
  item xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
   key xsi:type=xsd:stringvermittler_id/key
   value xsi:type=xsd:string123456/value
  /item
 /properties
/user
   /getUserFromSessionReturn
  /getUserFromSessionResponse
 /soapenv:Body
/soapenv:Envelope
 
Well, it MapDeserializer expects item-Elements and key/value-Elements.

In Apache SOAP-CVS there is a PropertyBagSerializer.java:
Add a serializer (PropertyBagSerializer) that can read SOAP compound
types into a Hashtable where the element names are the keys and the
element contents are the values, which means beans do not have to be created
for each compound type being deserialized.  Conversely, it can write a
Map similary, providing an alternative to the default Apache SOAP
serialization of Maps.

What about to add this to Apache Axis?

Best regards 
 Michael
 
-- 
Dipl.-Inform. Michael Konietzka  Schlund + Partner AG
- Development UNIX - Brauerstraße 48 
Webservices  D-76135 Karlsuhe
http://www.schlund.de/   Germany



axis client logging

2003-08-20 Thread Stuart Barlow
In the AXIS TCPMonitor I am seeing...

POST /dmintserver/services/dmintsoap?wsdl HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: testhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: 
Content-Length: 608
?xml version=1.0 encoding=UTF-8?
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
  ns1:logon soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:ns1=urn:dmintsoap
   libraryName xsi:type=xsd:stringlibname/libraryName
   userName xsi:type=xsd:stringusername/userName
   domain xsi:type=xsd:stringdomainname/domain
   password xsi:type=xsd:stringbad password/password
  /ns1:logon
 /soapenv:Body
/soapenv:Envelope

But in the AXIS log file I see...

HTTPSender XML sent:
HTTPSender ---
HTTPSender POST /dmintserver/services/dmintsoap?wsdl HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: localhost:8090
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: 
Content-Length: 608
null

Looks like the content has been lost when logging.
Is the log incorrect?
I am asking this because in my server I can not see any requests
arriving in AXIS. In the server I have a log4j.properties file
in the root of the classes dir with the root category set to DEBUG
Ta,
Stuart.


AW: Is this a wrapped service ?

2003-08-20 Thread Thomas Bayer



Hi Dimuthu 
,

you can set the property 
SEND_TYPE_ATTR in a org.apache.axis.client.Call object to 
false:

call.setProperty( 
SEND_TYPE_ATTR, "false");

If you use WSDL2Java and 
WSDL2Java recognizes your service as wrapped the following code is generated 
automatically:

 
_call.setEncodingStyle(null); 
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, 
Boolean.FALSE);
The WSDL fragment in your mail 
is to short to identify the style as wrapped.

Thomas


  -Ursprüngliche Nachricht-Von: Dimuthu Leelarathne 
  [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 20. 
  August 2003 06:56An: [EMAIL PROTECTED]Betreff: Is 
  this a wrapped service ?
  Hi all,
  
  Thank you very much foryour help Anne. 
  
  I have written a web service in wrapped style which takes in 
  an integer and return an integer ( for now). I managed to exclude the 
  "soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 
  " but still I'm unable to remove the xsi:type from the message. So could you 
  call this a literal encoded? What am I missing. Follwoing is what I get 
  fromthe TCP monitor. I have also given a snip of the wsdl I have 
  written.
  
  
  ?xml version="1.0" 
  encoding="UTF-8"?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 
  process xmlns="urn:WrappedOrder" A 
  xsi:type="xsd:int"1/A 
  /process/soapenv:Body/soapenv:Envelope
  
  
  Part of the wsdl I wrote is here.
  
  
  types 
  xsd:schema attributeFormDefault="qualified" 
  elementFormDefault="qualified" targetNamespace="urn:WrappedOrder" 
  xsd:element name="process" 
  xsd:complexType 
  xsd:sequence 
  xsd:element name="A" type="xsd:int"/ 
  /xsd:sequence 
  /xsd:complexType 
  /xsd:element 
  xsd:element name="processResponse" 
  xsd:complexType 
  xsd:sequence 
  xsd:element name="processResult" type="xsd:int"/ 
  /xsd:sequence 
  /xsd:complexType 
  /xsd:element 
  /xsd:schema 
  /types 
  
  
  What could be the problem?How can I eleminate the 
  xsi:type?
  
  Thanyou,
  Dimuthu
  
  
  This looks like an RPC/encoded message. 
  You've included 
  - soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 
  
  - xsi:type information
  
  A wrapped service message would look something like 
  this:
  
  
  ?xml version="1.0" 
  encoding="UTF-8"?soapenv:Envelope 
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Body 
  ns1:Add xmlns:ns1="http://math.samples/" 
  B4.1/B A2.2/A 
  /ns1:Add/soapenv:Body/soapenv:Envelope
  
  Keep in mind that when you're using WRAPPED (or any literal 
  encoding), you need a WSDL file to get the schema of the message body. 
  Otherwise the SOAP runtime has no idea how to type map it.
  
  Anne
  
  - Original Message - 
  
From: 
Dimuthu Leelarathne 
To: [EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 1:47 
AM
Subject: Is this a wrapped service 
?

I have a service similar to math in samples. I wrote a 
wsdd and a client (I'm not usnig wsdl or wsdl2java).If I run the TCP monitor 
shows the followingmessages (given bellow). 

My question is:::
Is it a 
wrapped service?

?xml version="1.0" 
encoding="UTF-8"?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 
ns1:Add 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:ns1="http://math.samples/" B 
xsi:type="xsd:float"4.1/B A 
xsi:type="xsd:float"2.2/A 
/ns1:Add/soapenv:Body/soapenv:Envelope

And the reply is:
?xml version="1.0" 
encoding="UTF-8"?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 
AddResponse xmlns="http://math.samples/" 
AddResult xsi:type="xsd:float"6.3/AddResult 
/AddResponse/soapenv:Body/soapenv:Envelope

However I use a call object to invoke this service. Am I 
missing something here? Am I going against the definition of wrapped style 
here?

Thank you,
Dimuthu.

  


Re: best practise and exceptions

2003-08-20 Thread Stuart Barlow
Well Im attempting the second approach. But with no success.
Would I be right in thinking that AXIS is still not able to
transport custom exceptions from the server to the client?
At present I am just getting an AxisFault exception on the client.

My exception dervives from Exception until I run the Java2WSDL and
WSDL2Java tools and then it derives from AxisFault. So as the code
is completely generated by AXIS I thought it would have worked.
Any thoughts?
Stuart.
Stuart Barlow wrote:
If I have a Java interface that I am going to be turning into
a web service (with AXIS and the Java2WSDL and WSDL2Java tools).
Should I define a hierarchy of exception classes that could be
thrown from the server. e.g.
Exception --- MyServiceException
MyServiceException  InvalidOperationException
InvalidOperationException  LogonFailure
MyServiceException  InvalidKeyException
So I end up with a complex hierarchy of exceptions. But then AXIS
will have to transport and de-derialize across the wire with all
the complexities involved.
Or should I just have a single exception class (MyServiceException)
containing error code information?
This second approach sounds easier for AXIS.
Thanks for any advise,
Stuart.




RE: Exceptions mapped to AxisFault using WSDL to Java

2003-08-20 Thread Hansen, Richard
I suppose it does that because Call.invoke() only throws AxisFaults. If you
throw an exception without defining it to axis then axis wraps it in a
AxisFault. If you define application specific exceptions they seem to need
descend from AxisFault so they get serialized. If you don't want to see any
AxisFault on the clientside, then you proabably need to configure axis to
handle the application specific exceptions that you throw. Of course those
exceptions still need to subclass AxisFault.

I did a bunch of experimenting to understand how axis handles excpetions and
faults and here is what I found out. Hope this helps.

Rick Hansen


- For all practical purposes a client programmer can treat Axis as if it
only throws 
  org.apache.axis.AxisFault exceptions. 
- Axis does not throw javax.xml.rpc.soap.SOAPFaultException. Axis never
creates a SOAPFaultException itself. However, since SOAPFaultException is
unchecked, one could leak through if thrown by a handler or service
implementation. 
- The invoke methods that are likely to be called by a client programmer
(the ones inherited from javax.xml.rpc.Call) return either a service
specific exception or org.apache.axis.AxisFault. 
- A service implementation can throw any type of exception.
- Axis faults thrown by a service implementation are returned to the client
just as thrown. 
- A non AxisFault thrown by a service implementation but not configured as a
service specific exception will be wrapped in an AxisFault on the client. A
faultCode of Server.userException and a local stack trace will be included
in the Axisfault. This is not the most useful thing that could happen as it
tends to hide the source/cuase of the exception. The fault string included
represents the original exception.
- Axis must be configured to handle service specific exceptions and recreate
them on the client. 
- Service specific exceptions can can be configured using either parameters
in the wsdd deployment file or using calls to
org.apache.axis.description.OperationDesc in the service stubs and
skeletons. 
- Service specific exceptions must subclass org.apache.axis.AxisFault. 
- The WSDL to Java tools will create service specific exceptions that are
defined in a wsdl file and create the required configuration code in the
stubs and skeletons generated.

 -Original Message-
 From: Stuart Barlow [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 8:30 AM
 To: [EMAIL PROTECTED]
 Subject: Exceptions mapped to AxisFault using WSDL to Java
 
 
 When I have an interface and use Java2WSDL followed by WSDL2Java
 I end up with AXIS types in my interface. This means that AXIS
 types are now polluting exposed in the client. Exceptions are
 derived from AxisFault
 
 So I have to provide another wrapper around the client interface
 for client apps to use, that does not have AXIS types.
 
 Does WSDL2Java have to use AXIS types in produced interfaces?
 
 Ta.
 Stuart.
 


Re: Unable to create JavaBean of type AbstractClass. Missing default constructor? Error was: java.lang.InstantiationException

2003-08-20 Thread Steve Maring
You are outside of the scope and capabilities of the
default type mapping as defined in Chapter 4  5 of
the JAX-RPC spec.

You will need to plug in your own (de)serializer.

Someone recently asked the same question.  Check the
archives.

Cheers.
Steve Maring



--- [EMAIL PROTECTED] wrote:
 
 
 I have a class DataObjectConcrete that extends
 from a base abstract class
 DataObjectAbstract. My Axis-client calls a method
 which returns class
 DataObjectConcrete. The method is called and
 processed correctly, but during
 the response deserialization Axis tries to
 instantiate the abstract class
 DataObjectAbstract instead of the concrete class
 DataObjectConcrete.
 
 My client receives the following error message :
 
 0 [main] ERROR client.Call  - Exception:
 org.xml.sax.SAXException: Unable to create JavaBean
 of type
 com.xxx.xxx.xxx.DataObjectAbstract.  Missing default
 constructor?  Error was:
 java.lang.InstantiationException:
 com.xxx.xxx.xxx.DataObjectAbstract.
  at

org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:159)
  at

org.apache.axis.encoding.DeserializerImpl.onStartElement(DeserializerImpl.java:481)...
 
 
 In the WSDL (generated by java2wsdl) this class is
 defined as
 
complexType abstract=true
 name=DataObjectAbstract
 sequence
  element name=action type=xsd:int/
 /sequence
/complexType
 
 the concrete class is defined as
 
complexType name=DataObjectConcrete
 complexContent
  extension base=tns3:DataObjectAbstract
   sequence
...
   /sequence
  /extension
 /complexContent
/complexType
 
 wsdl2java generates a stub where the abstract class
 is defined as
 
 qName =
   new javax.xml.namespace.QName(
 http://xxx.xxx.xxx.com;,
 DataObjectAbstract);
 cachedSerQNames.add(qName);
 cls = com.xxx.xxx.xxx.DataObjectAbstract.class;
 cachedSerClasses.add(cls);
 cachedSerFactories.add(beansf);
 cachedDeserFactories.add(beandf);
 
 the concrete class is defined in the same way. We
 are using the default
 serializers and deserializers.
 
 What has to be done in order for Axis to instantiate
 the concrete class during
 deserialization?
 
 Thanks in advance
 
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


RE: best practise and exceptions

2003-08-20 Thread Hansen, Richard
Other than the effort required to configure Axis, I don't see why it would
make much difference.

 If I have a Java interface that I am going to be turning into
 a web service (with AXIS and the Java2WSDL and WSDL2Java tools).
 
 Should I define a hierarchy of exception classes that could be
 thrown from the server. e.g.
 
 Exception --- MyServiceException
 MyServiceException  InvalidOperationException
 InvalidOperationException  LogonFailure
 MyServiceException  InvalidKeyException
 
 So I end up with a complex hierarchy of exceptions. But then AXIS
 will have to transport and de-derialize across the wire with all
 the complexities involved.
 
 Or should I just have a single exception class (MyServiceException)
 containing error code information?
 This second approach sounds easier for AXIS.
 
 Thanks for any advise,
 Stuart.
 


Re: Can methods in a service be overloaded

2003-08-20 Thread Jim Murphy
True enough, but if you had that much control of both ends of the wire 
I'd say you don't need web services anyway. :)

To me the raison d'etre of Web Services is interop which necessarily has 
lowest common denominator implications.

Jim



Jeff Greif wrote:

Also, overloaded methods are an area where either the server or client
software are liable to do a bad job.  It's my impression that if you're
operating in a tightly controlled environment where you can test the client
varieties and server code (and not expect random users to be invoking your
service using a whole raft of different client platforms), you might be able
to make it work, especially if you have the flexibility to change platforms
if it doesn't. Otherwise you're probably inviting trouble.  It's strange,
because the overload resolution does not seem that difficult; I guess it's
just a small part of a pretty substantial hunk of software and likely to
fall through the cracks.
Jeff
- Original Message - 
From: Jim Murphy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 12:01 PM
Subject: Re: Can methods in a service be overloaded



You can do that but the WSDL generated will not conform to the WS-I
Basic Profile[1], specifically R2304.
Regards
Jim Murphy
Mindreef, Inc.
[1] http://www.ws-i.org/

Guofeng Zhang wrote:


the service I published has the following operations:
  void beat() ;
  void  beat( long b ) ;
are they correct?










HOw to get the Binary for the nightly build

2003-08-20 Thread Subhendu Kumar mohanty
Hi,

I was looking through the nightly build. I could not find the binary in
the nightly field. It contains the source only. Can I get the binary for
the nightly build?

Thanks,
Subhendu 


RE: best practise and exceptions

2003-08-20 Thread Hansen, Richard
Is axis configured to handle you custom exceptions? If you look at
samples.faults in the wsdd it defines the exceptions like below. When I
define faults in my wsdl, then wsdl2Java puts configuration code in the
stubs and skeleton classes.

operation name=getEmployee ... 
  ...
  fault name=NoSuchEmployeeFault qname=fns:fault 
xmlns:fns=http://localhost:8080/ch09/services/Employee;   
class=samples.faults.NoSuchEmployeeFault 
type=tns:NoSuchEmployeeFault 
xmlns:tns=http://faults.samples/
/operation

 -Original Message-
 From: Stuart Barlow [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 20, 2003 8:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: best practise and exceptions
 
 
 Well Im attempting the second approach. But with no success.
 Would I be right in thinking that AXIS is still not able to
 transport custom exceptions from the server to the client?
 
 At present I am just getting an AxisFault exception on the client.
 
 My exception dervives from Exception until I run the Java2WSDL and
 WSDL2Java tools and then it derives from AxisFault. So as the code
 is completely generated by AXIS I thought it would have worked.
 
 Any thoughts?
 Stuart.
 
 
 Stuart Barlow wrote:
  If I have a Java interface that I am going to be turning into
  a web service (with AXIS and the Java2WSDL and WSDL2Java tools).
  
  Should I define a hierarchy of exception classes that could be
  thrown from the server. e.g.
  
  Exception --- MyServiceException
  MyServiceException  InvalidOperationException
  InvalidOperationException  LogonFailure
  MyServiceException  InvalidKeyException
  
  So I end up with a complex hierarchy of exceptions. But then AXIS
  will have to transport and de-derialize across the wire with all
  the complexities involved.
  
  Or should I just have a single exception class (MyServiceException)
  containing error code information?
  This second approach sounds easier for AXIS.
  
  Thanks for any advise,
  Stuart.
  
  
 


RE: HTTPS Server

2003-08-20 Thread Samir Shaikh









Have the server only listen to port 443. configure
it to not listen to port 80.



-Original Message-
From: Justin Avaya
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003
9:30 PM
To: [EMAIL PROTECTED]
Subject: HTTPS Server





Hi,





I am running a web service on our
server [Tomcat]. I can view my interface by doing http://myserver.com/service/Bean1?wsdlI
can also view by doing https://myserver.com/service/Bean1?wsdl.
The interface changes accordingly to http and https, 











Question: Is there to way to allow
the request only come through https and not through http?











This might not be directly
related to AXIS but might be a tomcat property like redirecting using
WEB.XML or somehow which I am not sure of. Thank you for your help.
















Re: Exceptions mapped to AxisFault using WSDL to Java

2003-08-20 Thread Stuart Barlow
Thanks for the feedback Richard. I have also been experimenting with
exceptions the last couple of days.
Im still feeling my way through AXIS. We were using GLUE and no GLUE
types were exposed in the client proxy classes. I guess that GLUE is
a little more mature.
You are right about the source/cause of the exception being hidden
and this being awkward. For example, there are a number of times that
I have been getting InvocationTargetExceptions with no source exception.
So its difficult to trace the exact problem. It would be good to have
the remote stack trace.
However I am now getting my custom exception transported to the client.
Even with its error code member variable. :-)
Another question...
In my originally specified exception it derived from Exception and it
had a cnstr that passed a String (message) up to the Exception class.
But after running Java2WSDL and WSDL2Java this cnstr has gone. So
where would I set the string message that will be passed up to the
Exception class?


Hansen, Richard wrote:
I suppose it does that because Call.invoke() only throws AxisFaults. If you
throw an exception without defining it to axis then axis wraps it in a
AxisFault. If you define application specific exceptions they seem to need
descend from AxisFault so they get serialized. If you don't want to see any
AxisFault on the clientside, then you proabably need to configure axis to
handle the application specific exceptions that you throw. Of course those
exceptions still need to subclass AxisFault.
I did a bunch of experimenting to understand how axis handles excpetions and
faults and here is what I found out. Hope this helps.
Rick Hansen

- For all practical purposes a client programmer can treat Axis as if it
only throws 
  org.apache.axis.AxisFault exceptions. 
- Axis does not throw javax.xml.rpc.soap.SOAPFaultException. Axis never
creates a SOAPFaultException itself. However, since SOAPFaultException is
unchecked, one could leak through if thrown by a handler or service
implementation. 
- The invoke methods that are likely to be called by a client programmer
(the ones inherited from javax.xml.rpc.Call) return either a service
specific exception or org.apache.axis.AxisFault. 
- A service implementation can throw any type of exception.
- Axis faults thrown by a service implementation are returned to the client
just as thrown. 
- A non AxisFault thrown by a service implementation but not configured as a
service specific exception will be wrapped in an AxisFault on the client. A
faultCode of Server.userException and a local stack trace will be included
in the Axisfault. This is not the most useful thing that could happen as it
tends to hide the source/cuase of the exception. The fault string included
represents the original exception.
- Axis must be configured to handle service specific exceptions and recreate
them on the client. 
- Service specific exceptions can can be configured using either parameters
in the wsdd deployment file or using calls to
org.apache.axis.description.OperationDesc in the service stubs and
skeletons. 
- Service specific exceptions must subclass org.apache.axis.AxisFault. 
- The WSDL to Java tools will create service specific exceptions that are
defined in a wsdl file and create the required configuration code in the
stubs and skeletons generated.


-Original Message-
From: Stuart Barlow [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 8:30 AM
To: [EMAIL PROTECTED]
Subject: Exceptions mapped to AxisFault using WSDL to Java
When I have an interface and use Java2WSDL followed by WSDL2Java
I end up with AXIS types in my interface. This means that AXIS
types are now polluting exposed in the client. Exceptions are
derived from AxisFault
So I have to provide another wrapper around the client interface
for client apps to use, that does not have AXIS types.
Does WSDL2Java have to use AXIS types in produced interfaces?

Ta.
Stuart.





Re: Can methods in a service be overloaded

2003-08-20 Thread James Black
[EMAIL PROTECTED] wrote:

yap i am quite agree that it better to keep away from overloaded methods ...

I have wirte overloaded methods and send them wrong requests ... e.g. send
three parameters to method expect two vise-versa ..
Some time they work ... (when they shuld fail..) depend on the service..
If u r going 2 meke a real serious application better to keep away .. you can
give a other name :)
 If you have good unit tests, then you can ensure that your overloaded 
methods can properly handle incorrect inputs, if nothing else, by 
sending an error message to that effect.

--
We do not lose our identity in our relations with others; in part, at least, we achieve 
our identity by those relations. Tony Blair, 1993



FW: Multi-Threaded Client Problem

2003-08-20 Thread Nolan Adrian


Regards,
Adrian.


Adrian Nolan

Traventec
Galway Business Park,
Newcastle,
Galway,
Ireland.

Phone: +353 (0)91 518729
Web:www.traventec.com


  -Original Message-
 From: Nolan Adrian  
 Sent: 19 August 2003 18:01
 To:   '[EMAIL PROTECTED]'
 Subject:  Multi-Threaded Client Problem
 
 Hi All - 
 
 I'm new to AXIS and Web Services. I have read and followed the AXIS docs
 and simple examples, but have a problem with my own multi-threaded AXIS
 Test Client I created. I used the wsdl2java utility to generated the Java
 classes from a WSDL file that was given to me.
 
 Basically I have a Test class and an inner class (Thread) that does the
 actual work of sending requests and receiving responses. Each Thread
 (Client) works in two modes [1] Reuses it's Web Object reference [2]
 Creates a new web object reference each time. I do this to test the cost
 of reusing the web object reference verses creating it each time.
 
 This is a snippet of code from my inner class, the constructor creates the
 reusable mNvsClient web object reference, if I need to create it each time
 I call createWebServiceReference() directly.
 
   /**
* Constructor
* @param pThreadID Thread ID to use when reporting back the
 results.
*/
   public Worker(int pThreadID) {
 
  mWorkerThreadID = pThreadID;
  
  // Create the reusable Web Service Object
  if (mReuseWebServiceObject) {
 mNvsClient = createWebServiceReference();
  }
   }
 
 
   /**
* Creates a new Web Service Object
* 
* @return Web Service Object Reference
*/
   private synchronized NVSGUSStub createWebServiceReference() {
  NVSGUSStub client = null;
  try {
 NVSGUS_Service nvsService = new NVSGUS_ServiceLocator();
 client = (NVSGUSStub) nvsService.getNVSGUS();
  }
  catch (ServiceException e) {
 e.printStackTrace();
  }
  return client;  
   }
 
 However, when I run my client with more than one thread (client) I get the
 following error repeated for different classes:
 
 bash-2.03$ . runtest.sh
 Axis NVS Tests .. started.
 Running: 2 clients, Reusing Web Services Object Reference: true
 - AxisClient [1] .. Running
 - AxisClient [0] .. Running
 - AxisClient [1] Sending Logon message  waiting for response
 - AxisClient [0] Sending Logon message  waiting for response
 - Internal Error occurred while build the property descriptors for
 test.dataclasses.Order
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at
 org.apache.axis.description.TypeDesc.getFields(TypeDesc.java:196)
 at
 org.apache.axis.utils.BeanUtils.processPropertyDescriptors(BeanUtils.java:
 255)
 at org.apache.axis.utils.BeanUtils.getPd(BeanUtils.java:103)
 at
 org.apache.axis.description.TypeDesc.getPropertyDescriptors(TypeDesc.java:
 445)
 at
 org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerializerFa
 ctory.java:88)
 at sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown
 Source)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr
 uctorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at
 org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSeria
 lizerFactory.java:257)
 at org.apache.axis.client.Call.registerTypeMapping(Call.java:2120)
 at de.dbsystems.www.NVSGUSStub.createCall(Unknown Source)
 at de.dbsystems.www.NVSGUSStub.logon(Unknown Source)
 at
 de.start.sip.nvslink.AxisNvsTestClient$Worker.doLogonTest(AxisNvsTestClien
 t.java:431)
 at
 de.start.sip.nvslink.AxisNvsTestClient$Worker.run(AxisNvsTestClient.java:3
 50)
 
 Am I doing something wrong ? How come it reports (Unknown Source) if I use
 more that one Client and yet works fine if I have a single client ?
 
 Any help or pointers would be much appricated.
 
 Regards,
 Adrian.
 
 
 Adrian Nolan
 
 Traventec
 Galway Business Park,
 Newcastle,
 Galway,
 Ireland.
 
 Phone: +353 (0)91 518729
 Web:  www.traventec.com
 
 

This e-mail and any files transmitted with it are confidential and may be
privileged and are intended solely for the individual named/ for the use of
the individual or entity to whom they are addressed.If you are not the
intended addressee, you should not disseminate, distribute or copy this
e-mail.Please notify the sender immediately if you have received this e-mail
by mistake and delete this e-mail from your system.If you are not the
intended recipient, you are notified that reviewing, disclosing, copying,
distributing or taking any action in reliance on the contents of this e-mail
is strictly 

accessing the HTTP Headers in the Response

2003-08-20 Thread [EMAIL PROTECTED]
All,

I need to access the HTTP headers in the response after the call.invoke().

Specifically, I need to get the JSESSIONID (cookie) that the web server
sets.
This is to code a work around for a load balancer which does not understand
SOAP Headers.

I have been through the API (and chased my tail pursuing different paths).
However, there does not appear to be an easy way to access the HTTP Headers
from the Call (or Service) object.

Since the transport is HTTP, don't we have access to the HTTP Request and
Response objects?

Any body faced this situation? Any ideas on a workaround?

Thanks
Conrad


mail2web - Check your email from the web at
http://mail2web.com/ .




Re: HOw to get the Binary for the nightly build

2003-08-20 Thread Rick Kellogg
Some days the build fails.  That is why you are not seeing a binary.  Look for an 
earlier date.

Rick

---Original Message---
From: Subhendu Kumar mohanty [EMAIL PROTECTED]
Sent: 08/20/03 10:25 AM
To: [EMAIL PROTECTED]
Subject: HOw to get the Binary for the nightly build

 
 Hi,

I was looking through the nightly build. I could not find the binary in
the nightly field. It contains the source only. Can I get the binary for
the nightly build?

Thanks,
Subhendu 
 


RE: accessing the HTTP Headers in the Response

2003-08-20 Thread Manchaiah, Girish (LNG-DAY)
Call.getMessageContext().getProperty(cookieName);

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 5:01 PM
To: [EMAIL PROTECTED]
Subject: accessing the HTTP Headers in the Response


All,

I need to access the HTTP headers in the response after the call.invoke().

Specifically, I need to get the JSESSIONID (cookie) that the web server
sets.
This is to code a work around for a load balancer which does not understand
SOAP Headers.

I have been through the API (and chased my tail pursuing different paths).
However, there does not appear to be an easy way to access the HTTP Headers
from the Call (or Service) object.

Since the transport is HTTP, don't we have access to the HTTP Request and
Response objects?

Any body faced this situation? Any ideas on a workaround?

Thanks
Conrad


mail2web - Check your email from the web at
http://mail2web.com/ .



RE: HOw to get the Binary for the nightly build

2003-08-20 Thread Manchaiah, Girish (LNG-DAY)
Refer to xml-axis\docs\building-axis.html
You can build the binary in minutes.

-Original Message-
From: Rick Kellogg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 2:23 PM
To: [EMAIL PROTECTED]
Subject: Re: HOw to get the Binary for the nightly build


Some days the build fails.  That is why you are not seeing a binary.  Look
for an earlier date.

Rick

---Original Message---
From: Subhendu Kumar mohanty [EMAIL PROTECTED]
Sent: 08/20/03 10:25 AM
To: [EMAIL PROTECTED]
Subject: HOw to get the Binary for the nightly build

 
 Hi,

I was looking through the nightly build. I could not find the binary in
the nightly field. It contains the source only. Can I get the binary for
the nightly build?

Thanks,
Subhendu 
 


How to define an array of array of string

2003-08-20 Thread Jhon Sanabria


Saludos

i'll be very thankful for your attention. i want to return, from one
web service, an array of array of string. How to define it in the source
code of the client.

QName QNAME_TYPE_STRING = new QName(NS_XSD, string);
call.setReturnType(QNAME_TYPE_STRING);

i know that in the code above return a string, what's the code to
represent array of array.

thanks a lot for your attention.

Que esten bien.



AW: Basic Autoentification problem ( solved)

2003-08-20 Thread Thorsten Mauch
for all who might run in the same trap:
if called the SimpleAuthorizationHandler b4 the SimpleAuthenticationHandler
correst is of course the oposite:

requestFlow name=auth
handler
type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/
  handler
type=java:org.apache.axis.handlers.SimpleAuthorizationHandler/
/requestFlow

it took me several hours :(
but I gain some knowlage of the axis source :)

-Ursprüngliche Nachricht-
Von: Thorsten Mauch [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 19. August 2003 23:01
An: '[EMAIL PROTECTED]'
Betreff: Basic Autoentification problem


Hi
I use axis deployed uner Jboss. I put the users list under the WEB-INF
directory
and i tried /jboss/bin as well. 
When I call the service I got always:

Need to specify a user for authorization!
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.NoUser
 faultSubcode: 
 faultString: Need to specify a user for authorization!
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace: AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.NoUser
 faultSubcode: 
 faultString: Need to specify a user for authorization!
 faultActor: 
 faultNode: 
 faultDetail: 


my wsdd file looks like:
deployment name=NetworkAdmin xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
xmlns:xsd=http://www.w3.org/2000/10/XMLSchema;
xmlns:xsi=http://www.w3.org/2000/10/XMLSchema-instance;
service name=Admin provider=java:EJB
namespacehttp://soapinterop.org//namespace
parameter name=beanJndiName value=imkenberg/Admin/
parameter name=homeInterfaceName
value=com.imkenberg.networkadmin.AdminHome/
parameter name=remoteInterfaceName
value=com.imkenberg.networkadmin.Admin/
parameter name=allowedMethods value=setPasswort/
parameter name=allowedRoles value=administrator/
parameter name=jndiURL value=jnp://localhost:1099/
parameter name=jndiContextClass
value=org.jnp.interfaces.NamingContextFactory/
requestFlow name=auth
handler
type=java:org.apache.axis.handlers.SimpleAuthorizationHandler/
handler
type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/
/requestFlow
/service
/deployment

i have not a clue where the problem is, so helper is very appreciated

Thanx Thorsten


Re: Is this a wrapped service ?

2003-08-20 Thread Anne Thomas Manes
Dimuthu,

Your current message qualifies as Document/Literal. It's always valid to 
override the type information using the xsi:type attribute -- but the point 
is that you aren't really overriding the defined schema, so you shouldn't 
need to include the type information.

Can someone else on the list provide some guidance as to how to tell Axis 
not to specify the xsi:type attributes in the message?

Anne

At 10:55 AM 8/20/2003 +0600, you wrote:
Hi all,

Thank you very much for your help Anne.

I have written a web service in wrapped style which takes in an integer 
and return an integer ( for now). I managed to exclude the 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http://schemas.xmlsoap.org/soap/encoding/ 
 but still I'm unable to remove the xsi:type from the message. So could 
you call this a literal encoded? What am I missing. Follwoing is what I 
get from the TCP monitor. I have also given a snip of the wsdl I have written.

?xml version=1.0 encoding=UTF-8?
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
  process xmlns=urn:WrappedOrder
   A xsi:type=xsd:int1/A
  /process
 /soapenv:Body
/soapenv:Envelope

Part of the wsdl I wrote is here.

types

xsd:schema attributeFormDefault=qualified 
elementFormDefault=qualified targetNamespace=urn:WrappedOrder

xsd:element name=process

xsd:complexType

xsd:sequence

xsd:element name=A type=xsd:int/

/xsd:sequence

/xsd:complexType

/xsd:element

xsd:element name=processResponse

xsd:complexType

xsd:sequence

xsd:element name=processResult type=xsd:int/

/xsd:sequence

/xsd:complexType

/xsd:element

/xsd:schema

/types

What could be the problem? How can I eleminate the xsi:type?

Thanyou,
Dimuthu
This looks like an RPC/encoded message.
You've included
- 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http://schemas.xmlsoap.org/soap/encoding/ 

- xsi:type information

A wrapped service message would look something like this:

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 soapenv:Body
  ns1:Add xmlns:ns1=http://math.samples/;
   B4.1/B
   A2.2/A
  /ns1:Add
 /soapenv:Body
/soapenv:Envelope
Keep in mind that when you're using WRAPPED (or any literal encoding), you 
need a WSDL file to get the schema of the message body. Otherwise the SOAP 
runtime has no idea how to type map it.

Anne

- Original Message -
From: mailto:[EMAIL PROTECTED]Dimuthu Leelarathne
To: mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
Sent: Monday, August 04, 2003 1:47 AM
Subject: Is this a wrapped service ?
I have a service similar to math in samples. I wrote a wsdd and a client 
(I'm not usnig wsdl or wsdl2java).If I run the TCP monitor shows the 
following messages (given bellow).

My question is :::
Is it a wrapped service?
?xml version=1.0 encoding=UTF-8?
soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/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
  ns1:Add 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:ns1=http://math.samples/;
   B xsi:type=xsd:float4.1/B
   A xsi:type=xsd:float2.2/A
  /ns1:Add
 /soapenv:Body
/soapenv:Envelope

And the reply is:
?xml version=1.0 encoding=UTF-8?
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
  AddResponse xmlns=http://math.samples/;
   AddResult xsi:type=xsd:float6.3/AddResult
  /AddResponse
 /soapenv:Body
/soapenv:Envelope

However I use a call object to invoke this service. Am I missing 
something here? Am I going against the definition of wrapped style here?

Thank you,
Dimuthu.





RE: Is this a wrapped service ?

2003-08-20 Thread Mike Perham
This is the global axis configuration wsdd I believe...

globalConfiguration
parameter name=sendXsiTypes value=true/
/globalConfiguration

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 20, 2003 3:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Is this a wrapped service ?


Dimuthu,

Your current message qualifies as Document/Literal. It's always valid to

override the type information using the xsi:type attribute -- but the
point 
is that you aren't really overriding the defined schema, so you
shouldn't 
need to include the type information.

Can someone else on the list provide some guidance as to how to tell
Axis 
not to specify the xsi:type attributes in the message?

Anne


At 10:55 AM 8/20/2003 +0600, you wrote:
Hi all,

Thank you very much for your help Anne.

I have written a web service in wrapped style which takes in an integer
and return an integer ( for now). I managed to exclude the 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http:
//schemas.xmlsoap.org/soap/encoding/ 
 but still I'm unable to remove the xsi:type from the message. So
could 
you call this a literal encoded? What am I missing. Follwoing is what I

get from the TCP monitor. I have also given a snip of the wsdl I have
written.


?xml version=1.0 encoding=UTF-8?
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
   process xmlns=urn:WrappedOrder
A xsi:type=xsd:int1/A
   /process
  /soapenv:Body
/soapenv:Envelope


Part of the wsdl I wrote is here.


types

xsd:schema attributeFormDefault=qualified
elementFormDefault=qualified targetNamespace=urn:WrappedOrder

xsd:element name=process

xsd:complexType

xsd:sequence

xsd:element name=A type=xsd:int/

/xsd:sequence

/xsd:complexType

/xsd:element

xsd:element name=processResponse

xsd:complexType

xsd:sequence

xsd:element name=processResult type=xsd:int/

/xsd:sequence

/xsd:complexType

/xsd:element

/xsd:schema

/types


What could be the problem? How can I eleminate the xsi:type?

Thanyou,
Dimuthu

This looks like an RPC/encoded message.
You've included
-
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http:/
/schemas.xmlsoap.org/soap/encoding/ 

- xsi:type information

A wrapped service message would look something like this:

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
   ns1:Add xmlns:ns1=http://math.samples/;
B4.1/B
A2.2/A
   /ns1:Add
  /soapenv:Body
/soapenv:Envelope

Keep in mind that when you're using WRAPPED (or any literal encoding), 
you
need a WSDL file to get the schema of the message body. Otherwise the
SOAP 
runtime has no idea how to type map it.

Anne

- Original Message -
From: mailto:[EMAIL PROTECTED]Dimuthu Leelarathne
To: mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
Sent: Monday, August 04, 2003 1:47 AM
Subject: Is this a wrapped service ?

I have a service similar to math in samples. I wrote a wsdd and a 
client
(I'm not usnig wsdl or wsdl2java).If I run the TCP monitor shows the 
following messages (given bellow).

My question is :::
 Is it a wrapped service?

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/http://schem
as.xmlsoap.org/soap/envelope/ 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Body
   ns1:Add 
 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:ns1=http://math.samples/;
B xsi:type=xsd:float4.1/B
A xsi:type=xsd:float2.2/A
   /ns1:Add
  /soapenv:Body
/soapenv:Envelope

And the reply is:
?xml version=1.0 encoding=UTF-8?
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
   AddResponse xmlns=http://math.samples/;
AddResult xsi:type=xsd:float6.3/AddResult
   /AddResponse
  /soapenv:Body
/soapenv:Envelope

However I use a call object to invoke this service. Am I missing
something here? Am I going against the definition of wrapped style
here?

Thank you,
Dimuthu.






RE: Is this a wrapped service ?

2003-08-20 Thread Cory Wilkerson
On the server-side in server-config.wsdd: 

?xml version=1.0 encoding=UTF-8?
deployment xmlns=http://xml.apache.org/axis/wsdd/; 
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
globalConfiguration
parameter name=sendXsiTypes value=true/

Though I've not ever tweaked that value, it looks promising.



-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 3:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Is this a wrapped service ?


Dimuthu,

Your current message qualifies as Document/Literal. It's always valid to 
override the type information using the xsi:type attribute -- but the point 
is that you aren't really overriding the defined schema, so you shouldn't 
need to include the type information.

Can someone else on the list provide some guidance as to how to tell Axis 
not to specify the xsi:type attributes in the message?

Anne


At 10:55 AM 8/20/2003 +0600, you wrote:
Hi all,

Thank you very much for your help Anne.

I have written a web service in wrapped style which takes in an integer 
and return an integer ( for now). I managed to exclude the 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http://schemas.xmlsoap.org/soap/encoding/
 
 but still I'm unable to remove the xsi:type from the message. So could 
you call this a literal encoded? What am I missing. Follwoing is what I 
get from the TCP monitor. I have also given a snip of the wsdl I have written.


?xml version=1.0 encoding=UTF-8?
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
   process xmlns=urn:WrappedOrder
A xsi:type=xsd:int1/A
   /process
  /soapenv:Body
/soapenv:Envelope


Part of the wsdl I wrote is here.


types

xsd:schema attributeFormDefault=qualified 
elementFormDefault=qualified targetNamespace=urn:WrappedOrder

xsd:element name=process

xsd:complexType

xsd:sequence

xsd:element name=A type=xsd:int/

/xsd:sequence

/xsd:complexType

/xsd:element

xsd:element name=processResponse

xsd:complexType

xsd:sequence

xsd:element name=processResult type=xsd:int/

/xsd:sequence

/xsd:complexType

/xsd:element

/xsd:schema

/types


What could be the problem? How can I eleminate the xsi:type?

Thanyou,
Dimuthu

This looks like an RPC/encoded message.
You've included
- 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/http://schemas.xmlsoap.org/soap/encoding/
 

- xsi:type information

A wrapped service message would look something like this:

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
   ns1:Add xmlns:ns1=http://math.samples/;
B4.1/B
A2.2/A
   /ns1:Add
  /soapenv:Body
/soapenv:Envelope

Keep in mind that when you're using WRAPPED (or any literal encoding), you 
need a WSDL file to get the schema of the message body. Otherwise the SOAP 
runtime has no idea how to type map it.

Anne

- Original Message -
From: mailto:[EMAIL PROTECTED]Dimuthu Leelarathne
To: mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
Sent: Monday, August 04, 2003 1:47 AM
Subject: Is this a wrapped service ?

I have a service similar to math in samples. I wrote a wsdd and a client 
(I'm not usnig wsdl or wsdl2java).If I run the TCP monitor shows the 
following messages (given bellow).

My question is :::
 Is it a wrapped service?

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/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
   ns1:Add 
 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:ns1=http://math.samples/;
B xsi:type=xsd:float4.1/B
A xsi:type=xsd:float2.2/A
   /ns1:Add
  /soapenv:Body
/soapenv:Envelope

And the reply is:
?xml version=1.0 encoding=UTF-8?
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
   AddResponse xmlns=http://math.samples/;
AddResult xsi:type=xsd:float6.3/AddResult
   /AddResponse
  /soapenv:Body
/soapenv:Envelope

However I use a call object to invoke this service. Am I missing 
something here? Am I going against the definition of wrapped style here?

Thank you,
Dimuthu.






SOAP over https

2003-08-20 Thread GREVER,PAT (HP-Boise,ex1)
Can anyone point me in the right direction about how to disable server
authentication when doing a soap call over https?

I need to do this on a per-call basis (not globally).  Using tomcat 4.1.27.

When doing POST over HTTPS, I just install my own TrustManager using the
HttpsURLConnection object, but with soap, I don't see anyway to access this
type of object to change the trust manager or the host verifier being used.

Pat


Re: href inside response??

2003-08-20 Thread Sanjay Krishnamurthi

 Yes.(unless your message schemas defined in WSDL
itself has id/ref attributes).

   Sanjay
 
--- Denero Watz [EMAIL PROTECTED] wrote:
 So are you saying that these hrefs will not come in
 the case of document style encoding??
 
 Sanjay Krishnamurthi
 [EMAIL PROTECTED] wrote:
 There is an element in your response (i think it is
 ccref) which has id of ccid0. Other elements are
 simply referring/pointing to it. Whenever you have a
 service that uses SOAP encoding, you are likely to
 see
 hrefs. You can look into the SOAP spec for more
 details.
 
 Sanjay
 
 
 --- Denero Watz wrote:
  I got an error while sending it last time. So
  resending it.
  dw
  
  Denero Watz wrote:
  I am trying to invoke a public web service
 

http://live.capescience.com/wsdl/AirportWeather.wsdl.
  The method I am invoking is getSummary. It returns
 a
  complex type, each field is of string type. But
 for
  some invalid inputs to this method, I saw it
 returns
  the o/p like below. I don't understnd what this
  href=#ccid0 is refering to? 
  
  Response from the server for an invalid input(e.g.
  KK)
  .
  
  

xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 

xmlns:cc1=http://www.capeclear.com/AirportWeather.xsd;
 

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 

xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
  

SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   xmlns:cc2=capeconnect:AirportWeather:Station
  SOAP-ENC:root=1
  
   xsi:type=xsd:stringnull href=#ccid0/
 href=#ccid0/
  href=#ccid0/
 href=#ccid0/ SOAP-ENC:root=0 id=ccid0 
 
 xsi:type=xsd:string
  .
  
  
  
  
  
  -
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
  design software
  
  -
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site
  design software
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 
 
 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


Re: Can methods in a service be overloaded

2003-08-20 Thread hemapani
Hi james ..

sure you can ...you can check input in the serivice and send error..

But with overloaded method you are adding another conceran to ur lap ..

The webservices (To me at least ) is not take a class (java or C) and publish
it. you do not want everything. To me overloaded method is something that can
be droped. It add unnecsarry overhead to the engine by supporting it. (I feel so).

Thanks for your tike 
Srinath
--
Simplicty is the ultimate requirement of all time, yet there is nothing like
complexity fascinates the humanbeings ... 

On Wed, 20 Aug 2003 12:21:05 -0400, James Black wrote
 [EMAIL PROTECTED] wrote:
 
 yap i am quite agree that it better to keep away from overloaded methods ...
 
 I have wirte overloaded methods and send them wrong requests ... e.g. send
 three parameters to method expect two vise-versa ..
 Some time they work ... (when they shuld fail..) depend on the service..
 
 If u r going 2 meke a real serious application better to keep away .. you can
 give a other name :)
 
   If you have good unit tests, then you can ensure that your 
 overloaded methods can properly handle incorrect inputs, if nothing 
 else, by sending an error message to that effect.
 
 -- 
 We do not lose our identity in our relations with others; in part,
  at least, we achieve our identity by those relations. Tony Blair, 1993


--
Lanka Software Foundation (http://www.opensource.lk)
Promoting Open-Source Development in Sri Lanka



Re: How to define an array of array of string

2003-08-20 Thread vairamuthu thayapavan
hi Jhon Sanabria

first create a class that give the way to return the array of array (call
that class Array2 as a bean).
QName qn = new QName( urn:myarray2, Array2 );

then register that type
call.registerTypeMapping(Array2 .class, qn,new
org.apache.axis.encoding.ser.BeanSerializerFactory(Array2 .class, qn), new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Order.class, qn));
then set return type as

call.setReturnType(qn);

then u can return the result using invke method in usual way

regards

thayapavan





- Original Message -
From: Jhon Sanabria [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 3:47 AM
Subject: How to define an array of array of string




 Saludos

 i'll be very thankful for your attention. i want to return, from one
 web service, an array of array of string. How to define it in the source
 code of the client.

 QName QNAME_TYPE_STRING = new QName(NS_XSD, string);
 call.setReturnType(QNAME_TYPE_STRING);

 i know that in the code above return a string, what's the code to
 represent array of array.

 thanks a lot for your attention.

 Que esten bien.






Re: How to define an array of array of string

2003-08-20 Thread vairamuthu thayapavan
hi Jhon Sanabria

sorry,some wrong in previous mail.
first create a class that give the way to return the array of array (call
that class Array2 as a bean).
QName qn = new QName( urn:myarray2, Array2 );

then register that type
call.registerTypeMapping(Array2 .class, qn,new
org.apache.axis.encoding.ser.BeanSerializerFactory(Array2 .class, qn), new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Array2 .class, qn));
then set return type as

call.setReturnType(qn);

then u can return the result using invke method in usual way

regards

thayapavan






- Original Message - 
From: Jhon Sanabria [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 3:47 AM
Subject: How to define an array of array of string


 
 
 Saludos
 
 i'll be very thankful for your attention. i want to return, from one
 web service, an array of array of string. How to define it in the source
 code of the client.
 
 QName QNAME_TYPE_STRING = new QName(NS_XSD, string);
 call.setReturnType(QNAME_TYPE_STRING);
 
 i know that in the code above return a string, what's the code to
 represent array of array.
 
 thanks a lot for your attention.
 
 Que esten bien.
 
 




Plz somebody help(regarding to jinsight)

2003-08-20 Thread Jeyakumaran.C



Hi all,
This is not related with this mailing list any how 
I hope u people may help me a bit.
I am using jinsght2.0 for the performance analysis 
for an axis project(using j2sdk1.4.0).
but jinsight gives an error

java.lang.NoClassDefFoundError: 
java/security/PrivilegedAction at 
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:82) 
at unknown source
the program works fine but for jinsight only it 
doesn't work.
Does jinsight support for j2sdk1.4.0.
Regard,
Jeyakumaran.C