Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 72249 invoked from network); 30 Sep 2007 23:51:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Sep 2007 23:51:00 -0000 Received: (qmail 22415 invoked by uid 500); 30 Sep 2007 23:50:43 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 21988 invoked by uid 500); 30 Sep 2007 23:50:42 -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 21976 invoked by uid 99); 30 Sep 2007 23:50:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2007 16:50:42 -0700 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=HTML_MESSAGE,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lagharinasreen@hotmail.com designates 65.54.246.226 as permitted sender) Received: from [65.54.246.226] (HELO bay0-omc3-s26.bay0.hotmail.com) (65.54.246.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2007 23:50:40 +0000 Received: from BAY124-W28 ([207.46.11.191]) by bay0-omc3-s26.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 30 Sep 2007 16:50:19 -0700 Message-ID: Content-Type: multipart/mixed; boundary="_daa7f368-096f-4d7d-84f4-5e116fb4bd46_" X-Originating-IP: [82.11.12.228] From: Nasreen Laghari To: , , Subject: RE: EPR...Endpoint Reference Date: Sun, 30 Sep 2007 23:50:19 +0000 Importance: Normal In-Reply-To: <20070925171158.GA5402844@lidp.com> References: <875672.51776.qm@web38908.mail.mud.yahoo.com> <46F93F23.501@iris.washington.edu> <20070925171158.GA5402844@lidp.com> MIME-Version: 1.0 X-OriginalArrivalTime: 30 Sep 2007 23:50:19.0452 (UTC) FILETIME=[A86D27C0:01C803BC] X-Virus-Checked: Checked by ClamAV on apache.org --_daa7f368-096f-4d7d-84f4-5e116fb4bd46_ Content-Type: multipart/alternative; boundary="_8063956f-bc96-4da8-a76f-5e317f19d6d3_" --_8063956f-bc96-4da8-a76f-5e317f19d6d3_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm still having the same problem of Address not found. I also tried to lo= ok in mail Archive but I couldn't resolve it. I got 2 reply from mailing li= st, 1 said that it looks like service is not available but I can see my web= service working on http://localhost:8080/axis2. The other said it might be = the problem of SOAP and he recommended me to use TCPMon. For this I need to= ask how do we know which version of SOAP we are using? and following is th= e result of TCPMon. I have also attached Service.xml and jsp client. =20 POST /axis2/services/AutenticationServer HTTP/1.1Content-Type: text/xml; ch= arset=3DUTF-8SOAPAction: "urn:anonOutInOp"User-Agent: Axis2Host: localhost:= 8082Transfer-Encoding: chunked fc0 =20 =20 .................. HTTP/1.1 200 OKServer: Apache-Coyote/1.1Content-Type: text/html;charset=3DI= SO-8859-1Content-Length: 242Date: Sun, 30 Sep 2007 23:19:55 GMT =20 =20 Exception: The endpoint reference (EPR) for the Operation not found is http= ://localhost:8082/axis2/services/AutenticationServer and the WSA Action =3D= urn:anonOutInOp =20 ABC12 =20 > Date: Tue, 25 Sep 2007 12:11:58 -0500> From: soloto@lidp.com> To: axis-us= er@ws.apache.org> Subject: Re: EPR...Endpoint Reference> > The Exception sa= ys that you do not have a service defined for "Random".> Make sure that Ran= dom is correctly defined.> > > On Tue, Sep 25, 2007 at 10:02:27AM -0700, Li= nus Kamb wrote:> > Not sure if this is your trouble, but I had similar trou= bles.> > > > Look at: http://marc.info/?l=3Daxis-user&m=3D118954790931434&w= =3D2> > > > use TCPMON to see what your http headers look like (as well as = the SOAP > > message.)> > > > Linus> > > > > > Nasreen Laghari wrote:> > >H= i> > > > > >Why EPR operation is not found?> > > > > > > > >Exception: The = endpoint reference (EPR) for the Operation not found is > > >http://localho= st:8080/axis2/services/Random and the WSA Action =3D > > >urn:anonOutInOp> = > > > > > > > > > > >My Coding:> > > > > ><%@ page import=3D"org.apache.axi= om.om.OMAbstractFactory,> > > org.apache.axiom.om.OMElement,> > > org.apach= e.axiom.om.OMFactory,> > > org.apache.axiom.om.OMNamespace,> > > org.apache= .axis2.AxisFault,> > > org.apache.axis2.Constants,> > > org.apache.axis2.ad= dressing.EndpointReference,> > > org.apache.axis2.client.Options,> > > org.= apache.axis2.client.ServiceClient,> > > org.apache.axis2.context.Configurat= ionContext,> > > org.apache.axis2.context.ConfigurationContextFactory" %>> = > > > > ><%! private OMElement createEnvelope() {> > > OMFactory fac =3D OM= AbstractFactory.getOMFactory();> > > OMNamespace omNs =3D > > >fac.createOM= Namespace("http://axisversion.sample/xsd", "ns1");> > > OMElement method = =3D fac.createOMElement("getVersion", omNs);> > > OMElement value =3D fac.c= reateOMElement("myValue", omNs);> > > method.addChild(value);> > > return m= ethod;> > > }> > >%>> > ><%> > > String IP =3D "http://localhost:8080/axis2= /axis2-web/trial.jsp";> > > int lastindex =3D IP.lastIndexOf('/');> > > IP = =3D IP.substring(0, lastindex);> > > ///axis2/axis2-web/services/version> >= > IP =3D IP.replaceAll("axis2-web", "");> > >%>> > ><% try{> > > OMElement= payload =3D createEnvelope();> > > ConfigurationContext configctx =3D > > = >ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,= > > >null);> > > ServiceClient client =3D new ServiceClient(configctx, nul= l);> > > EndpointReference targetEPR =3D new EndpointReference(IP + > > >co= nfigctx.getServicePath() + "/Random");> > > > > > Options options =3D new O= ptions();> > > client.setOptions(options);> > > options.setTo(targetEPR);> = > > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);> > > OMElemen= t result =3D client.sendReceive(payload);> > > out.println("Result: " +resu= lt);> > >> > > > > > } catch (Exception e) {> > > out.println("Exception: "= +e.getMessage());> > > }> > >%>> > >> > -----------------------------------= ----------------------------------> To unsubscribe, e-mail: axis-user-unsub= scribe@ws.apache.org> For additional commands, e-mail: axis-user-help@ws.ap= ache.org>=20 _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx= --_8063956f-bc96-4da8-a76f-5e317f19d6d3_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,
 
I'm still having the same problem of Address not found. I also tried to&nbs= p; look in mail Archive but I couldn't resolve it. I got 2 reply from maili= ng list, 1 said that it looks like service is not available but I can see m= y webservice working on http://loca= lhost:8080/axis2. The other said it might be the problem of SOAP and he= recommended me to use TCPMon. For this I need to ask how do we know w= hich version of SOAP we are using? and following is the result of TCPM= on. I have also attached Service.xml and jsp client.
 
POST /axis2/services/AutenticationServer HTTP/1.1
Content-Type: text/xml= ; charset=3DUTF-8
SOAPAction: "urn:anonOutInOp"
User-Agent: Axis2
= Host: localhost:8082
Transfer-Encoding: chunked
fc
<?xml version=3D'1.0' encoding=3D'UTF-8'?><soapenv:Envelope = xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/">&l= t;soapenv:Body><ns1:getVersion xmlns:ns1=3D"http://axisversion.sample/xsd"><ns= 1:myValue /></ns1:getVersion></soapenv:Body></soapenv= :Envelope>
0
 
 
..................

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html= ;charset=3DISO-8859-1
Content-Length: 242
Date: Sun, 30 Sep 2007 23:1= 9:55 GMT
 
 
Exception: The endpoint reference (EPR) for the Operation not found is http://loc= alhost:8082/axis2/services/AutenticationServer and the WSA Action =3D u= rn:anonOutInOp
 

<HTML>
<BODY>
ABC12

</BODY>
</HTML>
  






> Date: Tue, 25 Sep 2007 12:11:58 -0500
> From: soloto@lidp.com> To: axis-user@ws.apache.org
> Subject: Re: EPR...Endpoint Refer= ence
>
> The Exception says that you do not have a service def= ined for "Random".
> Make sure that Random is correctly defined.
&= gt;
>
> On Tue, Sep 25, 2007 at 10:02:27AM -0700, Linus Kamb = wrote:
> > Not sure if this is your trouble, but I had similar tro= ubles.
> >
> > Look at: http://marc.info/?l=3Daxis-user&= amp;m=3D118954790931434&w=3D2
> >
> > use TCPMON to = see what your http headers look like (as well as the SOAP
> > mes= sage.)
> >
> > Linus
> >
> >
>= > Nasreen Laghari wrote:
> > >Hi
> > >
>= > >Why EPR operation is not found?
> > >
> > &= gt;
> > >Exception: The endpoint reference (EPR) for the Opera= tion not found is
> > >http://localhost:8080/axis2/services/Ra= ndom and the WSA Action =3D
> > >urn:anonOutInOp
> > = >
> > >
> > >
> > >My Coding:
= > > >
> > ><%@ page import=3D"org.apache.axiom.om.= OMAbstractFactory,
> > > org.apache.axiom.om.OMElement,
>= > > org.apache.axiom.om.OMFactory,
> > > org.apache.axio= m.om.OMNamespace,
> > > org.apache.axis2.AxisFault,
> >= ; > org.apache.axis2.Constants,
> > > org.apache.axis2.addre= ssing.EndpointReference,
> > > org.apache.axis2.client.Options,=
> > > org.apache.axis2.client.ServiceClient,
> > >= org.apache.axis2.context.ConfigurationContext,
> > > org.apach= e.axis2.context.ConfigurationContextFactory" %>
> > >
&g= t; > ><%! private OMElement createEnvelope() {
> > > O= MFactory fac =3D OMAbstractFactory.getOMFactory();
> > > OMName= space omNs =3D
> > >fac.createOMNamespace("http://axisversion.= sample/xsd", "ns1");
> > > OMElement method =3D fac.createOMEle= ment("getVersion", omNs);
> > > OMElement value =3D fac.createO= MElement("myValue", omNs);
> > > method.addChild(value);
>= ; > > return method;
> > > }
> > >%>
&g= t; > ><%
> > > String IP =3D "http://localhost:8080/ax= is2/axis2-web/trial.jsp";
> > > int lastindex =3D IP.lastIndexO= f('/');
> > > IP =3D IP.substring(0, lastindex);
> > &= gt; ///axis2/axis2-web/services/version
> > > IP =3D IP.replace= All("axis2-web", "");
> > >%>
> > ><% try{> > > OMElement payload =3D createEnvelope();
> > > C= onfigurationContext configctx =3D
> > >ConfigurationContextFac= tory.createConfigurationContextFromFileSystem(null,
> > >null)= ;
> > > ServiceClient client =3D new ServiceClient(configctx, n= ull);
> > > EndpointReference targetEPR =3D new EndpointReferen= ce(IP +
> > >configctx.getServicePath() + "/Random");
> = > >
> > > Options options =3D new Options();
> >= ; > client.setOptions(options);
> > > options.setTo(targetEP= R);
> > > options.setTransportInProtocol(Constants.TRANSPORT_HT= TP);
> > > OMElement result =3D client.sendReceive(payload);> > > out.println("Result: " +result);
> > >
> = > >
> > > } catch (Exception e) {
> > > out.= println("Exception: "+e.getMessage());
> > > }
> > >= ;%>
> > >
>
> ---------------------------------= ------------------------------------
> To unsubscribe, e-mail: axis-u= ser-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis= -user-help@ws.apache.org
>



Get news, entertainmen= t and everything you care about at Live.com. Check it out! = --_8063956f-bc96-4da8-a76f-5e317f19d6d3_-- --_daa7f368-096f-4d7d-84f4-5e116fb4bd46_ Content-Type: text/xml Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="services.xml" PHNlcnZpY2UgbmFtZT0iQXV0aGVudGljYXRpb25TZXJ2ZXIiIHNjb3BlPSJhcHBsaWNhdGlvbiI+ DQogICAgPGRlc2NyaXB0aW9uPg0KICAgICAgICBBdXRlbnRpY2F0aW9uU2VydmVyDQogICAgPC9k ZXNjcmlwdGlvbj4NCiAgICANCg0KDQoJPG1lc3NhZ2VSZWNlaXZlcnM+DQogICAgICAgDQogICAg ICAgIDxtZXNzYWdlUmVjZWl2ZXINCiAgICAgICAgICAgIG1lcD0iaHR0cDovL3d3dy53My5vcmcv MjAwNC8wOC93c2RsL2luLW91dCINCiAgICBjbGFzcz0ib3JnLmFwYWNoZS5heGlzMi5ycGMucmVj ZWl2ZXJzLlJQQ01lc3NhZ2VSZWNlaXZlciIvPg0KDQoNCiAgICAgICAgICAgIA0KDQoNCjxtZXNz YWdlUmVjZWl2ZXINCiAgICAgICAgICAgIG1lcD0iaHR0cDovL3d3dy53My5vcmcvMjAwNC8wOC93 c2RsL2luLW91dCINCiAgICBjbGFzcz0ib3JnLmFwYWNoZS5heGlzMi5ycGMucmVjZWl2ZXJzLlJQ Q01lc3NhZ2VSZWNlaXZlciIvPg0KICAgIDwvbWVzc2FnZVJlY2VpdmVycz4NCgkNCg0KDQogICAg DQoNCjxwYXJhbWV0ZXIgbmFtZT0iU2VydmljZUNsYXNzIj4NCiAgICAgICAgYXV0aGVudGljYXRp b25zZXJ2ZXIuQXV0aGVudGljYXRpb25TZXJ2ZXINCiAgICA8L3BhcmFtZXRlcj4NCjwvc2Vydmlj ZT4= --_daa7f368-096f-4d7d-84f4-5e116fb4bd46_ Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="trial.jsp" PCVAIHBhZ2UgaW1wb3J0PSJvcmcuYXBhY2hlLmF4aW9tLm9tLk9NQWJzdHJhY3RGYWN0b3J5LA0K ICAgICAgICAgICAgICAgICBvcmcuYXBhY2hlLmF4aW9tLm9tLk9NRWxlbWVudCwNCiAgICAgICAg ICAgICAgICAgb3JnLmFwYWNoZS5heGlvbS5vbS5PTUZhY3RvcnksDQogICAgICAgICAgICAgICAg IG9yZy5hcGFjaGUuYXhpb20ub20uT01OYW1lc3BhY2UsDQogICAgICAgICAgICAgICAgIG9yZy5h cGFjaGUuYXhpczIuQXhpc0ZhdWx0LA0KICAgICAgICAgICAgICAgICBvcmcuYXBhY2hlLmF4aXMy LkNvbnN0YW50cywNCiAgICAgICAgICAgICAgICAgb3JnLmFwYWNoZS5heGlzMi5hZGRyZXNzaW5n LkVuZHBvaW50UmVmZXJlbmNlLA0KICAgICAgICAgICAgICAgICBvcmcuYXBhY2hlLmF4aXMyLmNs aWVudC5PcHRpb25zLA0KICAgICAgICAgICAgICAgICBvcmcuYXBhY2hlLmF4aXMyLmNsaWVudC5T ZXJ2aWNlQ2xpZW50LA0KICAgICAgICAgICAgICAgICBvcmcuYXBhY2hlLmF4aXMyLmNvbnRleHQu Q29uZmlndXJhdGlvbkNvbnRleHQsDQogICAgICAgICAgIC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djdHgg PSAgQ29uZmlndXJhdGlvbkNvbnRleHRGYWN0b3J5LmNyZWF0ZUNvbmZpZ3VyYXRpb25Db250ZXh0 RnJvbUZpbGVTeXN0ZW0obnVsbCwgbnVsbCk7DQogICAgICAgICAgICBTZXJ2aWNlQ2xpZW50IGNs aWVudCA9IG5ldyBTZXJ2aWNlQ2xpZW50KGNvbmZpZ2N0eCwgbnVsbCk7DQogICAgICAgICAgICBF bmRwb2ludFJlZmVyZW5jZSB0YXJnZXRFUFIgPSBuZXcgRW5kcG9pbnRSZWZlcmVuY2UoSVAgKyBj b25maWdjdHguZ2V0U2VydmljZVBhdGgoKSArICIvQXV0ZW50aWNhdGlvblNlcnZlciIpOw0KICAg ICAgICAgICAgDQogICAgICAgICAgICBPcHRpb25zIG9wdGlvbnMgPSBuZXcgT3B0aW9ucygpOw0K ICAgICAgICAgICAgY2xpZW50LnNldE9wdGlvbnMob3B0aW9ucyk7DQogICAgICAgICAgICBvcHRp b25zLnNldFRvKHRhcmdldEVQUik7DQogICAgICAgICAgICBvcHRpb25zLnNldFRyYW5zcG9ydElu UHJvdG9jb2woQ29uc3RhbnRzLlRSQU5TUE9SVF9IVFRQKTsNCg0KICAgICAgICAgICAgT01FbGVt ZW50IHJlc3VsdCA9IGNsaWVudC5zZW5kUmVjZWl2ZShwYXlsb2FkKTsNCiAgICAgICAgICAgIC8v b3V0LnByaW50bG4oIlJlc3VsdDogIiArcmVzdWx0KTsNCg0KDQogICAgICAgIA0KICAgICAgICB9 IGNhdGNoIChFeGNlcHRpb24gZSkgew0KCQlvdXQucHJpbnRsbigiRXhjZXB0aW9uOiAiK2UuZ2V0 TWVzc2FnZSgpKTsNCg0KICAgICAgICB9IA0KDQolPg0KDQoNCg0KPEhUTUw+DQo8Qk9EWT4NCg0K PCUgb3V0LnByaW50bG4oIkFCQzEyIik7JT4NCg0KPC9CT0RZPg0KDQo8L0hUTUw+DQogICA= --_daa7f368-096f-4d7d-84f4-5e116fb4bd46_ Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --_daa7f368-096f-4d7d-84f4-5e116fb4bd46_--