cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP request is not redirecting

Highlighted
New Contributor

SOAP request is not redirecting

Hi,

Can you please help with below.

 

We have a SOAP Webservice which is protected is using Site Minder. 

The service is working fine when we hit the service from Application UI, however, it does not work the same when using SOAP UI as client to test it.

We have provided basic authentication and credentials too. So got 200 Ok response, means no issue with authentication.

Getting below error:

It does not redirect to html or does not respond with json date

<HTML><HEAD><TITLE></TITLE></HEAD><BODY onLoad="document.AUTOSUBMIT.submit();">This page is used to hold your data while you are being authorized for your request.<BR><BR>You will be forwarded to continue the authorization process. If this does not happen automatically, please click the Continue button below.

 

in soaupui logs, can see response with 200 Ok. But since we are getting the HTML during authentication process with site minder, we are getting the above html and does not render correctly by SOAP UI, so we could not even hit the "continue" button"

SOAP UI error logs: this is the log when click "overview" in response. Not from request

  • Fri Jan 17 19:19:27 EST 2020: ERROR: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 12): 'S'
  • org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 12): 'S'
  • at com.eviware.soapui.support.xml.XmlUtils.createXmlObject(XmlUtils.java:232)
  • at com.eviware.soapui.support.editor.views.xml.overview.AbstractXmlOverviewEditorView.documentUpdated(AbstractXmlOverviewEditorView.java:105)
  • at com.eviware.soapui.support.editor.views.AbstractXmlEditorView.propertyChange(AbstractXmlEditorView.java:152)
  • at java.beans.PropertyChangeSupport.fire(Unknown Source)
  • at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  • at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  • at com.eviware.soapui.support.editor.xml.support.AbstractXmlDocument.fireContentChanged(AbstractXmlDocument.java:52)
  • at com.eviware.soapui.impl.support.components.ResponseXmlDocument.propertyChange(ResponseXmlDocument.java:83)
  • at java.beans.PropertyChangeSupport.fire(Unknown Source)
  • at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  • at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  • at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:93)
  • at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:918)
  • at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.afterSubmit(AbstractHttpRequestDesktopPanel.java:615)
  • at com.eviware.soapui.impl.wsdl.panels.request.AbstractWsdlRequestDesktopPanel.afterSubmit(AbstractWsdlRequestDesktopPanel.java:116)
  • at com.eviware.soapui.impl.wsdl.WsdlSubmit.notifyListenersAfterSubmit(WsdlSubmit.java:111)
  • at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:157)
  • at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  • at java.util.concurrent.FutureTask.run(Unknown Source)
  • at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  • at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  • at java.lang.Thread.run(Unknown Source)
  • Caused by: org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 12): 'S'
  • at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
  • at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712)
  • at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:696)
  • at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:683)
  • at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
  • at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:633)
  • at com.eviware.soapui.support.xml.XmlUtils.createXmlObject(XmlUtils.java:230)
  • ... 21 more
  • Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 1; columnNumber: 469; Unexpected character encountered (lex state 12): 'S'
  • at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1040)
  • at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
  • at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
  • ... 27 more
Tags (1)
2 REPLIES 2
Highlighted
New Contributor

Re: SOAP request is not redirecting

@smartBear , can you please help with it

Highlighted
Community Hero

Re: SOAP request is not redirecting

May be you want to set the appropriate headers such as Accept with "application/json" - just a guess. You can check with the developer for the required headers.


Regards,
Rao.