Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 70805 invoked from network); 18 Jul 2006 18:37:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 18:37:07 -0000 Received: (qmail 97379 invoked by uid 500); 18 Jul 2006 18:36:58 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 97359 invoked by uid 500); 18 Jul 2006 18:36:57 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 97348 invoked by uid 99); 18 Jul 2006 18:36:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 11:36:57 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of yura.tkachenko@gmail.com designates 64.233.184.233 as permitted sender) Received: from [64.233.184.233] (HELO wr-out-0506.google.com) (64.233.184.233) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 11:36:56 -0700 Received: by wr-out-0506.google.com with SMTP id i28so821031wra for ; Tue, 18 Jul 2006 11:36:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ZFRfyvdjcLgZZSpc8eRYimhGSY/cYiF3mfX5jo8gdNMPGmWYJuo6O0agBIKFHIiXJOAoKmIp9Z8gQtuZEZ3jr7ZWOG1EmwNb8vZf5yfI/WMD5oy4x02ASLC5R5LnWjnapYAAFsptkYcAhAW8gOOCwRvbzgs4iFm7Izdk5dCVIyk= Received: by 10.65.219.2 with SMTP id w2mr1153335qbq; Tue, 18 Jul 2006 11:36:35 -0700 (PDT) Received: by 10.65.248.16 with HTTP; Tue, 18 Jul 2006 11:36:35 -0700 (PDT) Message-ID: <1182c1ca0607181136x387d0395w8c7636f5e9666d01@mail.gmail.com> Date: Tue, 18 Jul 2006 21:36:35 +0300 From: "Yura Tkachenko" To: axis-user@ws.apache.org Subject: [Axis 1.3] inHeader parameter question MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_49920_31638278.1153247795693" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_49920_31638278.1153247795693 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I have a question about inHeader parameter question in Axis. I've configurated for my methods header parameter: soapAction="" > > > As you can see I have in both methods sessionHeader inHeader parameter. But I have several issues: 1) In wsdl files these parameters presents as elements sessionHeader, sessionHeader1. So on the client side I need pass both parameters to headers: binding.setHeader(locator.getServiceName().getNamespaceURI(), "sessionHeader", new SessionHeader(sessionHeaderObject)); binding.setHeader(locator.getServiceName().getNamespaceURI(), "sessionHeader1", new SessionHeader(sessionHeaderObject)); So I have duplication, but I want to use both of this methods just pass only one parameter: binding.setHeader(locator.getServiceName().getNamespaceURI(), "sessionHeader", new SessionHeader(sessionHeaderObject)); Is it possible to setup wsdd file or any other changes to use both methods with the same header parameter sessionHeader? 2) And the next issue happends when I trying to generate stubs to my web-service, for example using Axis I generated stubs and I have declaration of the method logoff: //java code void logoff(String sessionId); // how it declare in wsdd soapAction="" > But for .NET it methods has another declaration: void logoff(); Is it possible in Axis to configurate that inHeader parameters won't shows in the method prototype? -- Thanks for any your help, Yura. ------=_Part_49920_31638278.1153247795693 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,

I have a question about inHeader parameter question in Axis. I've
configurated for my methods header parameter:

        <operation name="logoff" qname="operNS:logoff"
xmlns:operNS="urn:nsite" xmlns:xsd=" http://www.w3.org/2001/XMLSchema"
soapAction="" >
          <parameter qname="sessionHeader"  type="tns:SessionHeader"
xmlns:tns="urn:nsite" inHeader="true"/>
        </operation>

        <operation name="queryEO" qname="operNS:queryEO"
xmlns:operNS="urn:nsite" returnQName="queryEOReturn"
returnType="rtns:ArrayOfEnterpriseObject" xmlns:rtns="urn:nsite"
returnItemType="tns2:EnterpriseObject" xmlns:tns2="urn:nsite" soapAction=""
>
          <parameter qname="qlExpression" type="tns:string" xmlns:tns="
http://www.w3.org/2001/XMLSchema"/>
          <parameter qname="Definition_ID" type="tns:long" xmlns:tns="
http://www.w3.org/2001/XMLSchema"/>
          <parameter qname="sessionHeader"  type="tns:SessionHeader"
xmlns:tns="urn:nsite" inHeader="true"/>
        </operation>

As you can see I have in both methods sessionHeader inHeader parameter. But
I have several issues:

1) In wsdl files these parameters presents as elements sessionHeader,
sessionHeader1. So on the client side I need pass both parameters to
headers:

            binding.setHeader(locator.getServiceName().getNamespaceURI(),
"sessionHeader", new SessionHeader(sessionHeaderObject));
            binding.setHeader(locator.getServiceName().getNamespaceURI(),
"sessionHeader1", new SessionHeader(sessionHeaderObject));

So I have duplication, but I want to use both of this methods just pass only
one parameter:

            binding.setHeader(locator.getServiceName ().getNamespaceURI(),
"sessionHeader", new SessionHeader(sessionHeaderObject));

Is it possible to setup wsdd file or any other changes to use both methods
with the same header parameter sessionHeader?

2) And the next issue happends when I trying to generate stubs to my
web-service, for example using Axis I generated stubs and I have declaration
of the method logoff:

//java code
void logoff(String sessionId);
// how it declare in wsdd
        <operation name="logoff" qname="operNS:logoff"
xmlns:operNS="urn:nsite" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soapAction="" >
          <parameter qname="sessionHeader"  type="tns:SessionHeader"
xmlns:tns="urn:nsite" inHeader="true"/>
        </operation>

But for .NET it methods has another declaration:
void logoff();

Is it possible in Axis to configurate that inHeader parameters won't shows
in the method prototype?

--
Thanks for any your help,
Yura.
------=_Part_49920_31638278.1153247795693--