I looked at the second error again and it looks like the server is
returning HTML instead of XML. that will cause Apache SOAP to throw
an exception when it tries to parse it.
double check the SOAP message and make sure it's correct. I know that
some webservice toolkits output html when an internal error occurs.
when that happens, the soap driver throws an exception. Are you able
to hit the webservice using a browser?
peter lin
On 7/5/05, Bronagh McElduff <[EMAIL PROTECTED]> wrote:
> Hi,
> I rewrote my test plan and observed the same results stated below.
> :-(
> Cheers,
> Bronagh
>
> Peter Lin wrote:
>
> >I forgot ot mention the latest version has some significant changes,
> >so you'll have to rewrite the webservice test plan. in the latest
> >code, the host, port and path are three separate fields now.
> >
> >peter lin
> >
> >
> >On 7/5/05, Bronagh McElduff <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Thank you, this has resolved my issue with regards loading my web
> >>service test plan. However, the bugs mentioned below are still
> >>present. Furthermore, running this test plan in 2 different versions of
> >>JMeter behaves very differently
> >>
> >>JMeter version 2.1.20050531 - exhibits the expected behaviour and returns
> >>a web service response
> >>JMeter version 2.1.20050704 - returns the following error
> >>
> >><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html
> >>dir=ltr><head><style>a:link {font:8pt/11pt verdana;
> >>color:FF0000}a:visited {font:8pt/11pt verdana;
> >>color:#4e4e4e}</style><META NAME="ROBOTS" CONTENT="NOINDEX"><title>The page
> >>cannot be displayed</title><META HTTP-EQUIV="Content-Type"
> >>Content="text-html; charset=Windows-1252"></head><script> function
> >>Homepage(){<!--// in real bits, urls get returned to our script like
> >>this:// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
> >>//For testing use DocURL =
> >>"res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
> >>DocURL=document.URL; //this is where the http or https will be,
> >>as found by searching for :// but skipping the res://
> >>protocolIndex=DocURL.indexOf("://",4); //this finds the ending
> >>slash for the domain server
> >>serverIndex=DocURL.indexOf("/",protocolIndex + 3); //for the href, we
> >>need a valid URL to the domain. We search for the # symbol to find the
> >>begining //of the true URL, and add 1 to skip it - this is the
> >>BeginURL value. We use serverIndex as the end marker.
> >>//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
> >>BeginURL=DocURL.indexOf("#",1) + 1;
> >>urlresult=DocURL.substring(BeginURL,serverIndex);
> >>//for display, we need to skip after http://, and go to the next slash
> >>displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
> >>InsertElementAnchor(urlresult, displayresult);}function HtmlEncode(text){
> >> return text.replace(/&/g, '&').replace(/'/g, '"').replace(/</g,
> >>'<').replace(/>/g, '>');}function TagAttrib(name, value){ return '
> >>'+name+'="'+HtmlEncode(value)+'"';}function PrintTag(tagName, needCloseTag,
> >>attrib, inner){ document.write( '<' + tagName + attrib + '>' +
> >>HtmlEncode(inner) ); if (needCloseTag) document.write( '</' + tagName
> >>+'>' );}function URI(href){ IEVer = window.navigator.appVersion;
> >>IEVer = IEVer.substr( IEVer.indexOf('MSIE') + 5, 3 ); return
> >>(IEVer.charAt(1)=='.' && IEVer >= '5.5') ? encodeURI(href) :
> >>escape(href).replace(/%3A/g, ':').replace(/%3B/g, ';');}function
> >>InsertElementAnchor(href, text){ PrintTag('A', true, TagAttrib('HREF',
> >>URI(href)), text);}//--></script><body bgcolor="FFFFFF"><table width="410"
> >>cellpadding="3" cellspacing="5"> <tr> <td align="left"
> >>valign="middle" width="360"> <h1 style="COLOR:000000; FONT: 13pt/15pt
> >>verdana"><!--Problem-->The page cannot be displayed</h1> </td> </tr>
> >><tr> <td width="400" colspan="2"> <font style="COLOR:000000; FONT:
> >>8pt/11pt verdana">The page you are looking for cannot be displayed because
> >>the page address is incorrect.</font> </td> </tr> <tr> <td
> >>width="400" colspan="2"> <font style="COLOR:000000; FONT: 8pt/11pt
> >>verdana"> <hr color="#C0C0C0" noshade> <p>Please try the
> >>following:</p> <ul> <li>If you typed the page address in the
> >>Address bar, check that it is entered correctly.<br> </li>
> >> <li>Open the <script> <!-- if
> >>(!((window.navigator.userAgent.indexOf("MSIE") > 0) &&
> >>(window.navigator.appVersion.charAt(0) == "2"))) {
> >>Homepage(); } //--> </script> home page and
> >>then look for links to the information you want.</li> </ul> <h2
> >>style="COLOR:000000; FONT: 8pt/11pt verdana">HTTP 405 - Resource not
> >>allowed<br> Internet Information Services</h2> <hr
> >>color="#C0C0C0" noshade> <p>Technical Information (for support
> >>personnel)</p> <ul><li>More information:<br><a
> >>href="http://www.microsoft.com/ContentRedirect.asp?prd=iis&sbp=&pver=5.0&pid=&ID=405&cat=web&os=&over=&hrd=&Opt1=&Opt2=&Opt3="
> >> target="_blank">Microsoft Support</a></li></ul> </font></td> </tr>
> >></table></body></html>
> >>
> >>Thanks in advance,
> >>Bronagh
> >>
> >>
> >>
> >>sebb wrote:
> >>
> >>
> >>
> >>>You probably need to download mail.jar and activation.jar from Sun and
> >>>add them to the lib directory.
> >>>
> >>>Licensing restrictions mean they can't be included with JMeter itself.
> >>>[Besides, they are not always needed.]
> >>>
> >>>S.
> >>>On 7/5/05, Bronagh McElduff <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Hi Peter
> >>>>
> >>>>Just installed the latest build (20050704) and uploaded my web service
> >>>>test plan. It seems that this build is missing the web service sampler:
> >>>>error -
> >>>>
> >>>>2005/07/05 09:30:08 ERROR - jmeter.gui.GuiPackage: Problem retrieving
> >>>>gui for org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui
> >>>>java.lang.NoClassDefFoundError: javax/mail/MessagingException
> >>>>
> >>>> at
> >>>>org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui.createTestElement(WebServiceSamplerGui.java:173)
> >>>>
> >>>> at
> >>>>org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:330)
> >>>>
> >>>> at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:66)
> >>>>
> >>>> at
> >>>>org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
> >>>>
> >>>> at
> >>>>org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:44)
> >>>>
> >>>> at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
> >>>>
> >>>> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> >>>>
> >>>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.run(Unknown Source)
> >>>>
> >>>>
> >>>>2005/07/05 09:30:08 ERROR - jmeter.gui.action.AddToTree:
> >>>>java.lang.RuntimeException: java.lang.NoClassDefFoundError:
> >>>>javax/mail/MessagingException
> >>>>
> >>>> at
> >>>>org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:337)
> >>>>
> >>>> at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:66)
> >>>>
> >>>> at
> >>>>org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
> >>>>
> >>>> at
> >>>>org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:44)
> >>>>
> >>>> at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
> >>>>
> >>>> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> >>>>
> >>>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >>>>
> >>>> at java.awt.EventDispatchThread.pumpEvents(Unknown
> >>>>
> >>>>
> >>>>Cheers,
> >>>>Bronagh
> >>>>
> >>>>Peter Lin wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>if you try the latest build, does the problem occur?
> >>>>>
> >>>>>I've made additional fixes since then, so it may already be fixed. if
> >>>>>not, please let me know and i will look into it.
> >>>>>
> >>>>>peter
> >>>>>
> >>>>>
> >>>>>On 7/4/05, Bronagh McElduff <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi Peter,
> >>>>>>
> >>>>>>I'm not sure if you recall but you provided me with a night build that
> >>>>>>resolved the issue below (JMeter version 2.1.20050531).
> >>>>>>However, I have found 2 bugs in this version
> >>>>>>1) Changes made to web service test plans are not picked up on "save".
> >>>>>>The only means to force any changes made to a web service test plan is
> >>>>>>to restart the application
> >>>>>>2) Using external datafiles:
> >>>>>>Steps:
> >>>>>>- Set the thread group loop count to 10
> >>>>>>- Add the following variable:
> >>>>>> CREDITNUM -
> >>>>>>${_StringFromFile(testfiles/Hydra/webservices/creditWS/creditData/creditnums.dat)}
> >>>>>>( creditnums.dat contains 10 lines, each with a different integer )
> >>>>>>- save and run
> >>>>>>
> >>>>>>Actual results:
> >>>>>>For each iteration, the CREDITNUM variable is assigned the value of the
> >>>>>>first integer in creditnums.dat
> >>>>>>
> >>>>>>Cheers,
> >>>>>>Bronagh
> >>>>>>
> >>>>>>
> >>>>>>Peter Lin wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>which version are you using? if you're using version older than 2.0.3
> >>>>>>>it probably doesn''t have the patch. the nightly will work with gsoap,
> >>>>>>>axis, jwsdp, aspx, asmx and apach soap wsdl.
> >>>>>>>
> >>>>>>>peter
> >>>>>>>
> >>>>>>>On 6/2/05, Bronagh McElduff <[EMAIL PROTECTED]> wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>Hi,
> >>>>>>>>
> >>>>>>>>I am a new-comer to testing webservices with JMeter. I have a WSDL
> >>>>>>>>that
> >>>>>>>>is valid (see below) and recongised as such when I load it through
> >>>>>>>>your
> >>>>>>>>WebService(SOAP)Request gui. I have also verified it by loading it
> >>>>>>>>in a
> >>>>>>>>browser as per the user manual:
> >>>>>>>>http://jakarta.apache.org/jmeter/usermanual/build-ws-test-plan.html
> >>>>>>>>
> >>>>>>>>However, the "Web methods" drop down is not populated as expected.
> >>>>>>>>There is no futher explanation available in the user manual
> >>>>>>>>
> >>>>>>>>Thanks in advance,
> >>>>>>>>B
> >>>>>>>>
> >>>>>>>>http://10.12.10.126:8080/CreditCardService/creditCard?WSDL
> >>>>>>>>
> >>>>>>>>---------------------------------------------------------------------
> >>>>>>>>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]
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>---------------------------------------------------------------------
> >>>>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]
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> 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]