Thank you Mayank, at least you gave a try to help me :)

So I understand you have experience with cxf only and you do not have much to 
say when it comes to using wss4j with axis, I need help from somebody else :(

I am still stuck with the addressing error, please some help from axis and 
wss4j experienced staff.

-----Original Message-----
From: Mayank Mishra [mailto:[email protected]]
Sent: 22 Ocak 2009 Perşembe 09:21
To: Fatih Karakoç (Bilgi Teknolojileri Grb.-ADK Yaz.Gel.&AR-GE-Proje Lideri)
Subject: Re: Problem With Writing a Secure Web Service Client

Hi Fatih,

I understood that you are using wss4j and cxf. Hence, I said
org.apache.cxf package.
Apologies from my side.

With Regards,
Mayank

[email protected] wrote:
> Hi Mayank,
>
> Sorry if I am being too primitive, but what is this ` org.apache.cxf.` 
> package ? Do I need an API other than axis and wss4j APIs ?
> This package does not seem to belong one of them.
>
> And from what you say,  I understand something like `from the wsdl it seems 
> that the web service does not use addressing, if you are getting this 
> addressing error the wsdl is not correct, it does not correctly reflect the 
> requirements of the web service ?`
>
> Am I right ?
>
> -----Original Message-----
> From: Mayank Mishra [mailto:[email protected]]
> Sent: 22 Ocak 2009 Perşembe 08:41
> Cc: [email protected]
> Subject: Re: Problem With Writing a Secure Web Service Client
>
> Hi Fatih,
>
> I can't see any usingAddressing policy expression in your wsdl, like
> <wsap:UsingAddressing
> xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"; />
> But I an see soapAction attribute inside soap:operation elements.
>
> In WS-I version 1.1 it states, A HTTP request message MUST contain a
> |SOAPAction| HTTP header field with a quoted value equal to the value of
> the |soapAction| attribute of |soapbindingOperation|, if present in the
> corresponding WSDL description.
>
>
> IMO, You can give a try be enabling WS-Adressing on your clients as,
>
> <jaxws: client id="{your.service.namespace}YourPortName">
>   <jaxws:features>
>     <wsa:addressing xmlns:wsa="http://cxf.apache.org/ws/addressing"/>
>   </jaxws:features>
> </jaxws:client>
>
> or from API you can do like,
>
> import org.apache.cxf.frontend.simple.ClientProxyFactoryBean;
> import org.apache.cxf.ws.addressing.WSAddressingFeature;
>
> ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
> factory.setServiceClass(MyService.class);
> factory.setAddress("http://acme.come/some-service";);
> *factory.getFeatures().add(new WSAddressingFeature());*
> MyService client = (MyService) factory.create();
>
>
>
>
> With Regards,
> Mayank
>
> [email protected] wrote:
>
>> Thanks for your interest Mayank.
>>
>> Here is my wsdl, can we understand if addressing is enabled or not from this 
>> ?
>>
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
>> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; 
>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
>> xmlns:tns="http://tempuri.org/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; 
>> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
>> targetNamespace="http://tempuri.org/"; 
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
>>   <wsdl:types>
>>     <s:schema elementFormDefault="qualified" 
>> targetNamespace="http://tempuri.org/";>
>>       <s:element name="PlakaDanAracBul">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="Plaka" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="TescilBelgeSerino" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="UserId" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="KurumTipi" 
>> type="s:int" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="PlakaDanAracBulResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" 
>> name="PlakaDanAracBulResult" type="tns:ArrayOfWsSahisArac" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:complexType name="ArrayOfWsSahisArac">
>>         <s:sequence>
>>           <s:element minOccurs="0" maxOccurs="unbounded" name="WsSahisArac" 
>> nillable="true" type="tns:WsSahisArac" />
>>         </s:sequence>
>>       </s:complexType>
>>       <s:complexType name="WsSahisArac">
>>         <s:complexContent mixed="false">
>>           <s:extension base="tns:WsSonuc">
>>             <s:sequence>
>>               <s:element minOccurs="0" maxOccurs="1" name="Ad" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="DigerAd" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Soyad" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="KimlikNo" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="VergiNo" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Plaka" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" 
>> name="TescilBelgeSeriNo" type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="TescilTarihi" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="TuzelKisilikAd" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="ModelYili" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Tip" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="MotorNo" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="SasiNo" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Cins" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Marka" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="BelgeId" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="YakitCins" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Renk" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="TescilBirim" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="SilindirHacmi" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="KullanimSekli" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="KullanimAmaci" 
>> type="s:string" />
>>             </s:sequence>
>>           </s:extension>
>>         </s:complexContent>
>>       </s:complexType>
>>       <s:complexType name="WsSonuc">
>>         <s:sequence>
>>           <s:element minOccurs="0" maxOccurs="1" name="HataMesaj" 
>> type="s:string" />
>>           <s:element minOccurs="0" maxOccurs="1" name="Hatakod" 
>> type="s:string" />
>>           <s:element minOccurs="0" maxOccurs="1" name="Sonuc" 
>> type="s:string" />
>>         </s:sequence>
>>       </s:complexType>
>>       <s:element name="MahrumiyetEkle">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="BelgeId" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="SubeAd" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="SubeKod" 
>> type="s:int" />
>>             <s:element minOccurs="0" maxOccurs="1" name="DosyaNumarasi" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="EklemeTarihi" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="Aciklama" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="UserId" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="KurumTipi" 
>> type="s:int" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="MahrumiyetEkleResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" 
>> name="MahrumiyetEkleResult" type="tns:WsMahrumiyetEkle" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:complexType name="WsMahrumiyetEkle">
>>         <s:complexContent mixed="false">
>>           <s:extension base="tns:WsSonuc">
>>             <s:sequence>
>>               <s:element minOccurs="0" maxOccurs="1" name="EGMReferansNo" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Plaka" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" 
>> name="TescilBelgeSeriNo" type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="SaseNo" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="EklemeTarihi" 
>> type="s:string" />
>>             </s:sequence>
>>           </s:extension>
>>         </s:complexContent>
>>       </s:complexType>
>>       <s:element name="SaseNoileMahrumiyetEkle">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="SaseNo" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="MotorNo" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="ModelYili" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="Cinsi" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="Markasi" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="SubeAd" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="SubeKod" 
>> type="s:int" />
>>             <s:element minOccurs="0" maxOccurs="1" name="UserId" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="KurumTipi" 
>> type="s:int" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="SaseNoileMahrumiyetEkleResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" 
>> name="SaseNoileMahrumiyetEkleResult" type="tns:WsMahrumiyetEkle" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="EGMReferansNodanHakMahrumiyetBul">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="EGMReferansNo" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="UserId" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="Kurumtipi" 
>> type="s:int" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="EGMReferansNodanHakMahrumiyetBulResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" 
>> name="EGMReferansNodanHakMahrumiyetBulResult" type="tns:WsHakMahrumiyet" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:complexType name="WsHakMahrumiyet">
>>         <s:complexContent mixed="false">
>>           <s:extension base="tns:WsSonuc">
>>             <s:sequence>
>>               <s:element minOccurs="0" maxOccurs="1" name="BelgeId" 
>> type="s:string" />
>>               <s:element minOccurs="1" maxOccurs="1" name="KurumTipi" 
>> type="s:int" />
>>               <s:element minOccurs="0" maxOccurs="1" name="KurumAd" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="MahrumiyetTuru" 
>> type="s:string" />
>>               <s:element minOccurs="1" maxOccurs="1" name="Turu" 
>> type="s:int" />
>>               <s:element minOccurs="0" maxOccurs="1" name="EkleyenBirimAd" 
>> type="s:string" />
>>               <s:element minOccurs="1" maxOccurs="1" name="EkleyenBirimKod" 
>> type="s:int" />
>>               <s:element minOccurs="0" maxOccurs="1" name="EvrakTarihi" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="EvrakSayisi" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="Aciklama" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="EGMReferansNo" 
>> type="s:string" />
>>               <s:element minOccurs="0" maxOccurs="1" name="EklemeTarihi" 
>> type="s:string" />
>>             </s:sequence>
>>           </s:extension>
>>         </s:complexContent>
>>       </s:complexType>
>>       <s:element name="EGMRefNodanHakMahrumiyetKaldir">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="EGMReferansNo" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="KaldiranSubeAd" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="KaldiranSubeKod" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="DosyaNumarasi" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" 
>> name="KaldirmaTalepTarihi" type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="Aciklama" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="UserId" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="Kurumtipi" 
>> type="s:int" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="EGMRefNodanHakMahrumiyetKaldirResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" 
>> name="EGMRefNodanHakMahrumiyetKaldirResult" type="tns:WsMahrumiyetEkle" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="BelgeIdDenMahrumiyetBul">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="BelgeId" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="UserId" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="KurumTipi" 
>> type="s:int" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="BelgeIdDenMahrumiyetBulResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" 
>> name="BelgeIdDenMahrumiyetBulResult" type="tns:ArrayOfWsHakMahrumiyet" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:complexType name="ArrayOfWsHakMahrumiyet">
>>         <s:sequence>
>>           <s:element minOccurs="0" maxOccurs="unbounded" 
>> name="WsHakMahrumiyet" nillable="true" type="tns:WsHakMahrumiyet" />
>>         </s:sequence>
>>       </s:complexType>
>>       <s:element name="MuvafakatVer">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="EGMReferansNo" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="MuvafakatTuru" 
>> type="s:int" />
>>             <s:element minOccurs="0" maxOccurs="1" name="MuvafakatTarihi" 
>> type="s:string" />
>>             <s:element minOccurs="0" maxOccurs="1" name="Aciklama" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="SubeKod" 
>> type="s:int" />
>>             <s:element minOccurs="0" maxOccurs="1" name="UserId" 
>> type="s:string" />
>>             <s:element minOccurs="1" maxOccurs="1" name="Kurumtipi" 
>> type="s:int" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="MuvafakatVerResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element minOccurs="0" maxOccurs="1" name="MuvafakatVerResult" 
>> type="tns:WsMahrumiyetEkle" />
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>     </s:schema>
>>   </wsdl:types>
>>   <wsdl:message name="PlakaDanAracBulSoapIn">
>>     <wsdl:part name="parameters" element="tns:PlakaDanAracBul" />
>>   </wsdl:message>
>>   <wsdl:message name="PlakaDanAracBulSoapOut">
>>     <wsdl:part name="parameters" element="tns:PlakaDanAracBulResponse" />
>>   </wsdl:message>
>>   <wsdl:message name="MahrumiyetEkleSoapIn">
>>     <wsdl:part name="parameters" element="tns:MahrumiyetEkle" />
>>   </wsdl:message>
>>   <wsdl:message name="MahrumiyetEkleSoapOut">
>>     <wsdl:part name="parameters" element="tns:MahrumiyetEkleResponse" />
>>   </wsdl:message>
>>   <wsdl:message name="SaseNoileMahrumiyetEkleSoapIn">
>>     <wsdl:part name="parameters" element="tns:SaseNoileMahrumiyetEkle" />
>>   </wsdl:message>
>>   <wsdl:message name="SaseNoileMahrumiyetEkleSoapOut">
>>     <wsdl:part name="parameters" 
>> element="tns:SaseNoileMahrumiyetEkleResponse" />
>>   </wsdl:message>
>>   <wsdl:message name="EGMReferansNodanHakMahrumiyetBulSoapIn">
>>     <wsdl:part name="parameters" 
>> element="tns:EGMReferansNodanHakMahrumiyetBul" />
>>   </wsdl:message>
>>   <wsdl:message name="EGMReferansNodanHakMahrumiyetBulSoapOut">
>>     <wsdl:part name="parameters" 
>> element="tns:EGMReferansNodanHakMahrumiyetBulResponse" />
>>   </wsdl:message>
>>   <wsdl:message name="EGMRefNodanHakMahrumiyetKaldirSoapIn">
>>     <wsdl:part name="parameters" 
>> element="tns:EGMRefNodanHakMahrumiyetKaldir" />
>>   </wsdl:message>
>>   <wsdl:message name="EGMRefNodanHakMahrumiyetKaldirSoapOut">
>>     <wsdl:part name="parameters" 
>> element="tns:EGMRefNodanHakMahrumiyetKaldirResponse" />
>>   </wsdl:message>
>>   <wsdl:message name="BelgeIdDenMahrumiyetBulSoapIn">
>>     <wsdl:part name="parameters" element="tns:BelgeIdDenMahrumiyetBul" />
>>   </wsdl:message>
>>   <wsdl:message name="BelgeIdDenMahrumiyetBulSoapOut">
>>     <wsdl:part name="parameters" 
>> element="tns:BelgeIdDenMahrumiyetBulResponse" />
>>   </wsdl:message>
>>   <wsdl:message name="MuvafakatVerSoapIn">
>>     <wsdl:part name="parameters" element="tns:MuvafakatVer" />
>>   </wsdl:message>
>>   <wsdl:message name="MuvafakatVerSoapOut">
>>     <wsdl:part name="parameters" element="tns:MuvafakatVerResponse" />
>>   </wsdl:message>
>>   <wsdl:portType name="ServiceSoap">
>>     <wsdl:operation name="PlakaDanAracBul">
>>       <wsdl:input message="tns:PlakaDanAracBulSoapIn" />
>>       <wsdl:output message="tns:PlakaDanAracBulSoapOut" />
>>     </wsdl:operation>
>>     <wsdl:operation name="MahrumiyetEkle">
>>       <wsdl:input message="tns:MahrumiyetEkleSoapIn" />
>>       <wsdl:output message="tns:MahrumiyetEkleSoapOut" />
>>     </wsdl:operation>
>>     <wsdl:operation name="SaseNoileMahrumiyetEkle">
>>       <wsdl:input message="tns:SaseNoileMahrumiyetEkleSoapIn" />
>>       <wsdl:output message="tns:SaseNoileMahrumiyetEkleSoapOut" />
>>     </wsdl:operation>
>>     <wsdl:operation name="EGMReferansNodanHakMahrumiyetBul">
>>       <wsdl:input message="tns:EGMReferansNodanHakMahrumiyetBulSoapIn" />
>>       <wsdl:output message="tns:EGMReferansNodanHakMahrumiyetBulSoapOut" />
>>     </wsdl:operation>
>>     <wsdl:operation name="EGMRefNodanHakMahrumiyetKaldir">
>>       <wsdl:input message="tns:EGMRefNodanHakMahrumiyetKaldirSoapIn" />
>>       <wsdl:output message="tns:EGMRefNodanHakMahrumiyetKaldirSoapOut" />
>>     </wsdl:operation>
>>     <wsdl:operation name="BelgeIdDenMahrumiyetBul">
>>       <wsdl:input message="tns:BelgeIdDenMahrumiyetBulSoapIn" />
>>       <wsdl:output message="tns:BelgeIdDenMahrumiyetBulSoapOut" />
>>     </wsdl:operation>
>>     <wsdl:operation name="MuvafakatVer">
>>       <wsdl:input message="tns:MuvafakatVerSoapIn" />
>>       <wsdl:output message="tns:MuvafakatVerSoapOut" />
>>     </wsdl:operation>
>>   </wsdl:portType>
>>   <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
>>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; />
>>     <wsdl:operation name="PlakaDanAracBul">
>>       <soap:operation soapAction="http://tempuri.org/PlakaDanAracBul"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="MahrumiyetEkle">
>>       <soap:operation soapAction="http://tempuri.org/MahrumiyetEkle"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="SaseNoileMahrumiyetEkle">
>>       <soap:operation 
>> soapAction="http://tempuri.org/SaseNoileMahrumiyetEkle"; style="document" />
>>       <wsdl:input>
>>         <soap:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="EGMReferansNodanHakMahrumiyetBul">
>>       <soap:operation 
>> soapAction="http://tempuri.org/EGMReferansNodanHakMahrumiyetBul"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="EGMRefNodanHakMahrumiyetKaldir">
>>       <soap:operation 
>> soapAction="http://tempuri.org/EGMRefNodanHakMahrumiyetKaldir"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="BelgeIdDenMahrumiyetBul">
>>       <soap:operation 
>> soapAction="http://tempuri.org/BelgeIdDenMahrumiyetBul"; style="document" />
>>       <wsdl:input>
>>         <soap:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="MuvafakatVer">
>>       <soap:operation soapAction="http://tempuri.org/MuvafakatVer"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>   </wsdl:binding>
>>   <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
>>     <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; />
>>     <wsdl:operation name="PlakaDanAracBul">
>>       <soap12:operation soapAction="http://tempuri.org/PlakaDanAracBul"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap12:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap12:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="MahrumiyetEkle">
>>       <soap12:operation soapAction="http://tempuri.org/MahrumiyetEkle"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap12:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap12:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="SaseNoileMahrumiyetEkle">
>>       <soap12:operation 
>> soapAction="http://tempuri.org/SaseNoileMahrumiyetEkle"; style="document" />
>>       <wsdl:input>
>>         <soap12:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap12:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="EGMReferansNodanHakMahrumiyetBul">
>>       <soap12:operation 
>> soapAction="http://tempuri.org/EGMReferansNodanHakMahrumiyetBul"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap12:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap12:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="EGMRefNodanHakMahrumiyetKaldir">
>>       <soap12:operation 
>> soapAction="http://tempuri.org/EGMRefNodanHakMahrumiyetKaldir"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap12:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap12:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="BelgeIdDenMahrumiyetBul">
>>       <soap12:operation 
>> soapAction="http://tempuri.org/BelgeIdDenMahrumiyetBul"; style="document" />
>>       <wsdl:input>
>>         <soap12:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap12:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="MuvafakatVer">
>>       <soap12:operation soapAction="http://tempuri.org/MuvafakatVer"; 
>> style="document" />
>>       <wsdl:input>
>>         <soap12:body use="literal" />
>>       </wsdl:input>
>>       <wsdl:output>
>>         <soap12:body use="literal" />
>>       </wsdl:output>
>>     </wsdl:operation>
>>   </wsdl:binding>
>>   <wsdl:service name="Service">
>>     <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
>>       <soap:address 
>> location="http://serveraddress/WebServisBanka/Service.asmx"; />
>>     </wsdl:port>
>>     <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
>>       <soap12:address 
>> location="http://serveraddresss/WebServisBanka/Service.asmx"; />
>>     </wsdl:port>
>>   </wsdl:service>
>> </wsdl:definitions>
>>
>> -----Original Message-----
>> From: Mayank Mishra [mailto:[email protected]]
>> Sent: 21 Ocak 2009 Çarşamba 10:22
>> To: [email protected]
>> Subject: Re: Problem With Writing a Secure Web Service Client
>>
>> Hi Fatih,
>>
>> Can you please check whether your service wsdl or CXF configuration is
>> enabling Addressing hence desiring Addressing headers.
>> It will be better if you can reply with your wsdl.
>>
>> With Regards,
>> Mayank
>>
>> [email protected] wrote:
>>
>>
>>> I have just started to think there is nobody over there.
>>>
>>>
>>>
>>> Please, I really need some help; any hint, any tip or any idea, I will
>>> be grateful if you share.
>>>
>>>
>>>
>>> Thanks.
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> *From:* [email protected]
>>> [mailto:[email protected]]
>>> *Sent:* 20 Ocak 2009 Salı 08:33
>>> *To:* [email protected]
>>> *Subject:* Problem With Writing a Secure Web Service Client
>>>
>>>
>>>
>>> I need to write a java client for a .NET secure web service.
>>>
>>>
>>>
>>> I am using axis 1.4 and wss4j-1.5.4
>>>
>>>
>>>
>>> After constructing my stub files with WSDL2java I wrote my client code
>>> as follows;
>>>
>>>
>>>
>>>       *public* *static* *void* main(String[] args)*throws* Exception {
>>>
>>>
>>>
>>>             ServiceLocator locator = *new* ServiceLocator();
>>>
>>>             ServiceSoapStub service =
>>> (ServiceSoapStub)locator.getServiceSoap();
>>>
>>>             //here I try to set the security configuration
>>>
>>>             service._setProperty(WSHandlerConstants./ACTION/,
>>> WSHandlerConstants./USERNAME_TOKEN/);
>>>
>>>             service._setProperty(WSHandlerConstants./USER/, "user");
>>>
>>>             service._setProperty(WSHandlerConstants./PASSWORD_TYPE/,
>>> WSConstants./PASSWORD_TEXT/);
>>>
>>>
>>> service._setProperty(WSHandlerConstants./PW_CALLBACK_CLASS/,
>>> "PWCBHandler.class");
>>>
>>>
>>> service._setProperty(Constants./ENV_ADDRESSING_NAMESPACE_URI/,
>>> Constants./NS_URI_ADDRESSING_2004_08/);
>>>
>>>
>>>
>>> //here I try to call the remote operation
>>>
>>>             WsSahisArac[] araclar = service.plakaDanAracBul("01AT076",
>>> "486278", "AktifBanK-EGM-RehinSerVICE-L6", 137);
>>>
>>>             System./out/.println(araclar[0].getAd());
>>>
>>>
>>>
>>>             }
>>>
>>>
>>>
>>>
>>>
>>> But I am always getting the error
>>>
>>>
>>>
>>> Header http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for
>>> ultimate recipient is required but not present in the message.
>>>
>>>
>>>
>>>
>>>
>>> I am really having a hard time to solve this problem for a few days, I
>>> will appreciate any help.
>>>
>>>
>>>
>>> Thanks in advance,
>>>
>>>
>>>
>>> Fatih
>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to