Re: Memory management

2005-12-09 Thread John Hawkins

I'm going to put this onto the web-site
in the next few days but sneak preview -

Many Web Services Client for C++ methods
either expect or create memory objects. 
Below is a list of rules that you must
follow when developing web service client applications: 
v Any memory object that is passed to
Web Services Client for C++ does not need to persist past the method for
which it was required and should be deleted at the earliest opportunity.

v Any memory object created and returned
by Web Services Client for C++ should be deleted by the client application
before the deletion of the web service that created it. Note that Windows
requires that the memory object be deleted from within the thread that
created it, otherwise you may get an out of bounds exception type error
from the core C++ libraries. 
v Any object passed by reference (rather
than value) that is used by Web Services Client for C++ must be created
using new, and destroyed using delete. 
v Once an object has been deleted, its
pointer must be set to NULL (this is to ensure that the pointer is not
used elsewhere).







Stettler, Robert
[EMAIL PROTECTED] 
08/12/2005 20:17



Please respond to
Apache AXIS C User List





To
axis-c-user@ws.apache.org


cc



Subject
Memory management








Does the client need to delete the memory
associated with the return objects returned by the generated webservice
methods? Or is the memory managed by the axis?





The information contained in this e-mail is confidential and/or proprietary
to Capital One and/or its affiliates. The information transmitted herewith
is intended only for use by the individual or entity to which it is 
addressed. If the reader of this message is not the intended recipient,

you are hereby notified that any review, retransmission, dissemination,

distribution, copying or other use of, or taking of any action in reliance

upon this information is strictly prohibited. If you have received this

communication in error, please contact the sender and delete the material

from your computer.




https versus http proxy

2005-12-09 Thread Franz Fehringer
Hello,

Is Axis C/C++ 1.5 able to tunnel https connections over http proxies?
According to my investigations probably not.
The necessary steps for this scheme would be (to my best knowledge)
1) connect normally to proxy
2) send http CONNECT request (with remote address as argument)
3) now we have a connection to the remote host (descriptor from step 1)
4) do SSL handshake
5) ready for normal SSL/HTTPS communication
I cannot find such logic in the AxisC sources.
Am i right that https over http proxis is not possible yet and if yes, is
this planned for the future?

Best regards

Franz

Dr. Franz Fehringer (Dipl. Math.)

ISO Software Systeme
Eichendorffstrasse 29
90491 Nürnberg
Deutschland

Tel. : +49/(911) - 99594-0
Fax  : +49/(911) - 99594-580

mailto:[EMAIL PROTECTED]
http://www.isogmbh.de



HashMap

2005-12-09 Thread Xinjun Chen
Hi, I met a problem when dealing with HashMap and complex types.

class BaseClass {
...

EntityFlowType[] flows;
// flows is actually a HashMap with 
// key: String entityType
// value: ArrayListEntityLinkType entityLink

}

class EntityFlowType {
String entityType;

EntityLinkType[] entityLinks;
// entityLinks is actually a HashMap with
// key: String source
// value: HashMap targets

}

// EntityLinkType is in fact a HashMap
// key: String source
// value: HashMap targets
class EntityLinkType {
String source;

HashMap targets;
// key: String target
// value: double travelTime

}

I constructed the following XML schema for EntityFlowType and EntityLinkType: 

 xsd:complexType name=entityFlowType
 xsd:sequence

xsd:element name=entityLink type=sim:entityLinkType
maxOccurs=unbounded/
 /xsd:sequence

xsd:attribute name=entityType type=xsd:string
use=required/
 /xsd:complexType

 xsd:complexType name=entityLinkType
 xsd:sequence

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

xsd:element name=targets

xsd:complexType

xsd:sequence maxOccurs=unbound

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

xsd:element name=travelTime type=xsd:double/

/xsd:sequence

/xsd:complexType

/xsd:element

...
 /xsd:sequence
 /xsd:complexType

The above are data types that I need to pass between doc/lit web
services. Do I need to do write customized serializer/deserializer? It
seems that I need to write customized serializer/deserializer to
marshal and unmarshal SOAPBodyElement before Call.invoke. Could anyone
point me a way to write customized serializer/deserializer for HashMap?


Regards, 
Xinjun



Re: unsubscribe me

2005-12-09 Thread Toshiyuki Kimura

Did you read and try it ?
http://marc.theaimsgroup.com/?l=axis-userm=113316457208194w=2

Anyway, you'll have a confirmation message to unsubscribe
this list, later. Then, you have to reply to the message
to complete your unsubscription.

Thanks,
Toshi

On Fri, 9 Dec 2005 [EMAIL PROTECTED] wrote:


unsubscribe me

Hi, help
Does anyone know to really unsubscribe ? Despite lot of
attempts, I'm still receiving tons of mails !
___



HTTP 1.1

2005-12-09 Thread Fady Kaddoum



I am using Axis 1.2.1 for my Web Service client. I 
am issuing HTTP 1.0 requests and the server is sending me HTTP 1.1 responses. 
Can I configure my client to use HTTP 1.1 instead of 1.0?

Thank you
Fady


Re[2]: [Axis2] Axis2 0.93 doesn't find resources in .aar

2005-12-09 Thread Iwan Memruk
Hello Ajith,

Friday, December 9, 2005, 5:16:30 AM, you wrote:

AR Hmm..
AR I guess the problem is likely to be that hibernate internally
AR tries toload some of its classes by itself  and picks up a wrong
AR classloader! I'm not an expert of Hibernate but is there a way to
AR specifythe classloader when creating/calling hibernate methods ?

I  must  specify that the problem is not with Hibernate. The Hibernate
mapping file was just an example. Other resources, such as spring bean
XML descriptor and others don't get loaded either.

Deepal  --  could you please explain -- does it work out of the box or
did you have to do the trick with getting the classloader that you had
described to me?

The  problem  is, I could get the classloader as you specified, but it
would break the code elegance (my business code is agnostic w.r.t. the
service  platform  used). Plus Hibernate does not allow to specify the
classloader to use in order to load its config.

Thanks everybody for helping.

AR On 12/9/05, Deepal Jayasinghe [EMAIL PROTECTED] wrote:Hi Iwan;

AR I just checked and it worked me as required.

AR Thanks,
AR  Deepal
AR 
AR ~Future is Open~

AR - Original Message -
AR From: Iwan Memruk [EMAIL PROTECTED]
AR To: axis-user@ws.apache.org
AR Sent: Thursday, December 08, 2005 5:42 PM
AR Subject: [Axis2] Axis2 0.93 doesn't find resources in .aar


 Hello axis-user,

  Axis2 version 0.93

  ..doesn't load resources from .aar for me.

  And so did 0.92.

  If i deploy the resources to axis2/WEB-INF/classes, they get loaded
  OK.

  Someone else faced this problem?

 --
 Best regards,
Iwan  mailto:[EMAIL PROTECTED]













-- 
Best regards,
 Iwanmailto:[EMAIL PROTECTED]



Re: [Axis2] - upgrading from [Axis1.3]

2005-12-09 Thread iksrazal
The Axis2 Code Generation Tool Reference has a sample WSDL using soap 1.1 and 
doc / lit . 

http://ws.apache.org/axis2/CodegenToolReference.html

AFAIK, your choices are 'rpc literal' and 'doc literal' using axis2 at the 
present time, ie, not rpc encoded. 

HTH, 
iksrazal

Em Sexta 09 Dezembro 2005 04:26, o Simon McMahon escreveu:
 Hi,

 Looks to me like Axis2 is geared more for message passing than RPC
 which Axis 1.x handled very well. Axis2 obviously has other features
 that Axis 1.3 doesn't but my existing services work best as RPC. Well,
 at least I could get it to work. It also looks like you need to know
 AXIOM pretty well to use Axis 2.

 I think I have to wait for some more Axis2 examples and 1.x backwards
 compatibility before I can migrate successfully.

 Thanks,

 Simon.


 Simon McMahon

 Work: (07) 31311420
 Mobile: (043) 2294180

  [EMAIL PROTECTED] 12/08/05 03:38pm 

 Forwarding to the list. It was my fault to hit reply and send only to
 Simon. I am not sure of the Java2WSDL satus right now. May be ajith
 would know better.
 Chathura

 On 12/8/05, Simon McMahon [EMAIL PROTECTED] wrote:
  Thanks for your time to look into it. I thought my change to the

 wsdl

  was too dumb to work but if I keep hacking my wsdl file without
  understanding what I am doing I am most likely going to wreck it. In

 the

  schema section I changed the soapens:string to xsd:string but I

 dont

  know how to convert the array types. Is there more documentation

 that

  I should be looking into or some other way? The only wsdl sample is
  Axis2SampleDocLit.wsdl.
 
  As I understand there is no Java2WSDL for Axis2 (yet).
 
  Sorry to keep with new questions but I'm a bit lost with what to try
  next...
 
  Surely people dont create wsdl by hand so where do Axis2 compliant
  wsdls come from?
  How do I start from just a class (.java) and build the wsdl, server

 

  client for Axis2 like I did with Axis 1.3 (1.2 when I started)?
  If Web Services are to be interoperable - i.e. a Axis2 client using

 an

  Axis 1.3 server - how come the WSDL doesn't work as is?
  Is this just a question of time to finish Axis2 ?
 
  Regards,
 
  Simon.
 
 
  Simon McMahon
 
  Work: (07) 31311420
  Mobile: (043) 2294180
 
   Chathura Herath [EMAIL PROTECTED] 12/08/05 02:39pm 
 
  I am sorry that wouldnt work. You need to get rid of all the

 soapenc:
  types in the schema section. We use xml beans for databingding it
  cannot handle soap encoding. Though you have simply change the use
  from thm encoded to literal the semantic description of your data in
  schema is still SOAP encoded.
  Chathura
 
  On 12/7/05, Simon McMahon [EMAIL PROTECTED] wrote:
   Original WSDL and edited are attached. The original was generated

 by

   Axis 1.3. All I did was substitute encoded for literal and
 
  changed
 
   nothing else.
  
   My understanding of all this is pretty limited although I got my
 
  Axis
 
   1.3 service and client to work OK.
  
   Your help is most appreciated.
  
   Cheers,
  
   Simon.
  
  
   Simon McMahon
  
   Work: (07) 31311420
   Mobile: (043) 2294180
  
[EMAIL PROTECTED] 12/08/05 01:56pm 
  
   Doesn't seem right. Pls attach the edited WSDL.
   Literal means the type is fully described by schema: Encoded mean
 
  the
 
   semantics of encoding applies. If its SOAP encoding then the
 
  semantics
 
   of SOAP encoding is used other than xsd type.
   Chathura
  
   On 12/7/05, Simon McMahon [EMAIL PROTECTED] wrote:
Hi again,
   
I hacked up my Axis 1.3 generated wsdl and changed all
wsdlsoap:body
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=urn:qh use=encoded/
to
wsdlsoap:body
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
namespace=urn:qh use=literal/
based on the WSDL2Java error
   
: java.lang.RuntimeException: The use 'encoded' is not
   
supported!
   
I have no idea what that means but now WSDL2Java runs to
 
  completion
 
   and
  
generates a whole bunch of files.
   
What is the difference between encoded and literal?
Why is all the standard 'databinding' source plugged into my
 
  package
 
   ?
  
Surely this will bloat the size of every web service.
   
Also, my original Service method:
public Provider[] getProvider(String name, String
  
   providerId,
  
String orgName, String locationId, int maxResults) throws
 
  Exception
 
became:
/**
 * Auto generated method signatures
 * @param param68
 */
 public org.apache.axis2.om.OMElement getProvider(
org.apache.axis2.om.OMElement param68) throws
  
   java.rmi.RemoteException;
  
The only bit that stayed the same is the method name. How can

 the

stub/skeleton for the same web service be so different?
Is there more I need to do to the WSDL to make it generate a
 
  proper
 
interface and skeleton service?
   

Re: Can you have more then one client handler

2005-12-09 Thread iksrazal
endpoint=http://localhost:9080/hub/servlet/AxisServlet
portQN=AxisServlet

QName portQN = new QName(endpoint, portQN);

Em Quinta 08 Dezembro 2005 18:35, o Parikh,Pratik escreveu:
 What does portQN stand for???

 Thanks,
 Parikh, Pratik


 -Original Message-
 From: iksrazal [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 08, 2005 1:06 PM
 To: axis-user@ws.apache.org
 Subject: Re: Can you have more then one client handler

 Here's a rough example for how it works for one handler.

   //add ClientHandler to chain of events
   java.util.List list =
 svc.getHandlerRegistry().getHandlerChain(portQN);
   list.add(new
 javax.xml.rpc.handler.HandlerInfo(ClientHandler.class,this.handlerConfig
 ,null));

 I guess just repeat for the second, third etc ? Not sure how the
 ordering would work either. Suggest looking at the API docs.

 iksrazal

 Em Quinta 08 Dezembro 2005 17:56, o Parikh,Pratik escreveu:
  Is there a example for this???
 
  Thanks,
  Parikh, Pratik
 
 
  -Original Message-
  From: Guy Rixon [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 08, 2005 1:56 AM
  To: axis-user@ws.apache.org
  Subject: RE: Can you have more then one client handler
 
  You could try combining them into a handler chain. You could then
  assign the chain to handle the request.
 
  On Wed, 7 Dec 2005, Parikh,Pratik wrote:
   Can anyone reply to this??
  
  
   Thanks,
   Parikh, Pratik
  
   
  
   From: Parikh,Pratik [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, December 07, 2005 10:02 AM
   To: axis-user@ws.apache.org
   Subject: Can you have more then one client handler
  
  
  
   Hi Everyone,
  
   I have two handler in my client stub, one for logging out
   messages
  
   to MQ and second is for CommonsHTTPSender. Now the problem I am
   running into is that it only allow me to have one handler. Is there
   anyway I can run both, please let me know?
  
   Thanks,
   Pratik
  
   CONFIDENTIALITY NOTICE
  
   This message and any included attachments are from Cerner
   Corporation and are intended only for the addressee. The information
  
   contained in this message is confidential and may constitute inside
   or non-public information under international, federal, or state

 securities laws.

   Unauthorized forwarding, printing, copying, distribution, or use of
   such information is strictly prohibited and may be unlawful. If you
   are not the addressee, please promptly delete this message and
   notify the sender of the delivery error by e-mail or you may call
   Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
   (816)221-1024.
    --
 
  Guy Rixon   [EMAIL PROTECTED]
  Institute of Astronomy  Tel: +44-1223-337542
  Madingley Road, Cambridge, UK, CB3 0HA  Fax:

 +44-1223-337523

  CONFIDENTIALITY NOTICE
 
  This message and any included attachments are from Cerner Corporation
  and are intended only for the addressee. The information contained in
  this message is confidential and may constitute inside or non-public
  information under international, federal, or state securities laws.
  Unauthorized forwarding, printing, copying, distribution, or use of
  such information is strictly prohibited and may be unlawful. If you
  are not the addressee, please promptly delete this message and notify
  the sender of the delivery error by e-mail or you may call Cerner's
  corporate offices in Kansas City, Missouri, U.S.A at (+1)
  (816)221-1024.
   --

 CONFIDENTIALITY NOTICE

 This message and any included attachments
 are from Cerner Corporation and are intended
 only for the addressee. The information
 contained in this message is confidential and
 may constitute inside or non-public information
 under international, federal, or state
 securities laws. Unauthorized forwarding,
 printing, copying, distribution, or use of such
 information is strictly prohibited and may be
 unlawful. If you are not the addressee, please
 promptly delete this message and notify the
 sender of the delivery error by e-mail or you
 may call Cerner's corporate offices in Kansas
 City, Missouri, U.S.A at (+1) (816)221-1024.
  --


Axis API

2005-12-09 Thread Sandeep Gaikwad
Hi, I am trying to migrate my project from axis to WAS 5.1.  I am getting most of the trouble in case of replacing variuos classes used by axis.   So can anyone explain me what is the purpose of ParameterMode class and signature attribute defined for it.  Regards,  Sandeep  
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Code generation problem. Strange Classname

2005-12-09 Thread glenn bech
I have a WSDL with a refenrence to an XML Schema file. This .xsd contains
the following element declaration 

xs:element name=Cai3gFault
xs:complexType
xs:sequence
xs:element name=faultcode type=xs:integer/
xs:element name=faultreason
xs:complexType
xs:sequence
xs:element name=reasonText type=xs:string
maxOccurs=unbounded/
/xs:sequence
/xs:complexType
/xs:element
xs:element name=faultrole type=xs:string/
xs:element name=details minOccurs=0
xs:complexType
xs:sequence
xs:any namespace=##any
processContents=lax/
/xs:sequence
/xs:complexType
/xs:element
/xs:sequence
/xs:complexType
/xs:element

The correnspondig classname after code generation with wsdl2java becomes
Cai3gFault_Element instead of Cai3gFault. Can anyone explain this
behaviour? Im using Axis 1.3 Final. 

Thanks in advance. 

Glenn Richard Bech
Seniorkonsulent
Mob: 99356459 Tel: 40003325
Lysaker torg 2,  1366 Lysaker
http://www.webstep.no  
Bergen - Oslo - Stavanger
 
 

From: Sandeep Gaikwad [mailto:[EMAIL PROTECTED] 
Sent: 9. desember 2005 13:11
To: axis-user@ws.apache.org
Subject: Axis API

Hi,
 
 I am trying to migrate my project from axis to WAS 5.1.
 I am getting most of the trouble in case of replacing variuos classes
used by axis.
 So can anyone explain me what is the purpose of ParameterMode class and
signature attribute defined for it.
 
 
Regards,
Sandeep
 

Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping 
BEGIN:VCARD
VERSION:2.1
N:Bech;Glenn;Richard
FN:[EMAIL PROTECTED]
ORG:Webstep Consulting AS
TITLE:Seniorkonsulent
TEL;WORK;VOICE:99356459
TEL;CELL;VOICE:99356459
ADR;WORK:;;P.O. Box 66;;Lysaker;1324;Norway
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:P.O. Box 66=0D=0ALysaker 1324=0D=0ANorway
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050923T071750Z
END:VCARD


Web service client: need help

2005-12-09 Thread Håkon T Sønderland

Hi,

I'm trying to develop a web service client to consume an existing web
service using Axis 1.3/Java 1.4.

I generate the stub code using wsdl2java (classes are InfoXMLStub
etc).

When I try to call the web service using this code:


Header header
   = new Header(user,pass,subuser,custid,version);
InfoXML service = new InfoXMLLocator();
InfoXMLSoap port = service.getInfoXMLSoap();
Stub stub = (Stub)port;
stub.setHeader(https://www.creditinform.no/creditinform.standardwebservice.ws2005207/InfoXML,Header,header);
ReportPersonResponseReportPersonResult person
  = port.reportPerson(, strSocSecNumber, , , , , );
MessageElement[] message = person.get_any();


I get exceptions in the log thus (from the port.reportPerson call):

12.09 13:52:16 DEBUG org.apache.axis.ConfigurationException - Exception:
org.apache.axis.ConfigurationException: No service named InfoXMLSoap is 
available
org.apache.axis.ConfigurationException: No service named InfoXMLSoap is 
available
	at 
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)

at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at 
org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
at org.apache.axis.client.Call.invoke(Call.java:2690)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
	at 
com.antares.creditinform.standardwebservice.InfoXMLSoapStub.reportPerson(Unknown 
Source)
	at 
com.antares.creditinform.standardwebservice.client.WSClient.getPersonResult(Unknown 
Source)


What can be the problem here?

Many thanks for any help
Håkon
--
We shall fight on the beaches,
we shall fight on the landing grounds,
we shall fight in the fields and in the streets,
we shall fight in the hills;
we shall never surrender
http://www.getfirefox.com/


Re: java2wsdl .net string[] arrays

2005-12-09 Thread Ron Reynolds
is it literal or rpc-encoded?  my guess is rpc-encoded and everything i've
read (including the WS-I Basic Profile 1.1) says don't use rpc-encoding -
only literal encoding, especially if you want to have a chance at .NET/Java
interop.

 Hi!

 I'm just getting started modyfying wsdl, but I have limited knowledge of the
 java2wsdl tool and I'm not sure I'm using it in the right way.

 The wsdl I'm using works fine when calling axis web services using java
 clients, but fails in .net when I call methods that return string[].

 I'm not sure how I should use java2wsdl, nor how to tweak the wsdl so that
 .net clients can call methods returning String arrays.

 Could anyone please point me to some good wsdl documentation or tell me how
 I'm supposed to use java2wsdl to generate .net compliant wsdls?

 Thanks!

 Stefan





Re: Web service client: need help

2005-12-09 Thread Håkon T Sønderland

Ron Reynolds wrote:

i see this error (notice it's logged at the DEBUG level) even when things
are running normally.  do you get any exceptions thrown in your client code
when you try to use the stub?

the reason this is logged is because this code (AxisEngine:308):
public SOAPService getService(String name) throws AxisFault
{
try {
return config.getService(new QName(null, name));
} catch (ConfigurationException e) {
try {
return config.getServiceByNamespaceURI(name);
} catch (ConfigurationException e1) {
throw new AxisFault(e);
}
}
}
depends on an exception being thrown on the first attempt (line 311 in your
stack trace) to then try a different method of finding the service (which
probably succeeds since you see no log of that AxisFault on line 316).  the
reason you see a log entry is because in ConfigurationException's ctor the
exception object logs itself (at debug level) to its own log category.  this
part is questionable (i've never seen an exception log itself) since in this
case the exception is normal and you're not the first person to be a bit
concerned by an exception showing up in your logs...



Thanks a lot, I need to take a look at the next exception in the log then,
because it certainly isn't working ;)
I was assuming this was the problem since it is the first exception that
is cast.  I thought the rest was just follow-ons from this one and thus
ignored them.

Thanks again Ron , you are most helpful.

Håkon



[Axis2] Building Axis2 services with Maven2

2005-12-09 Thread Iwan Memruk
Hello All,

  Does anyone have any suggestions how to make Maven2 create valid
  Axis2 service packages?

  Maven2 does not include libs into packaged JAR's, thus the
  service doesn't work if deployed as is.

  Maven2 does include dependencies into packaged WAR's, but they
  have different structure, not applicable for Axis2.

  As for now, I put required runtime JAR's into
  /main/resources/libs and they do get included right where they
  have to be.

  But that makes me keep libs together with the source code which
  is not a good idea, since I do use Maven2.

  Thanks in advance.

-- 
Best regards,
 Iwan  mailto:[EMAIL PROTECTED]