cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2597
Views
2
Helpful
10
Replies
Highlighted
Beginner

Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

1. downloaded  WSDL for MSE

2. Installed SOAPUI and made a project with apointer to location.wsdl.

3 . Below error is thrown when I send a request. Example..I clicked GetStationList - Request- in the text filed I changed the serverIP and clicked run

error getting response javax.net.ssl.SSLpeerunverifiedException: peer not authenticated

Looks like MSE has SSL without a cert and SOAPUI is looking for it. Any suggestions to go over the hurdle?

Thanks!

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

The XML request is still not correct: use either <typ:AesLogin> or <typ:Credential>, but not both.

Also I'm not sure 7.4 WSDL (or even 7.1 WSDL) will work with 7.0 MSE. I'll check on this.

View solution in original post

10 REPLIES 10
Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

Another test: I have another MSE - 3310 and I enabled http. Executed Request from SOAPUI to http://2.2.2.2/aaa/ and I do not get ssl.peerUnverified message but get a rbelow response..

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">   <soapenv:Body>      <soapenv:Fault>         <faultcode>soapenv:Server</faultcode>         <faultstring>For input string: "?"</faultstring>         <detail>            <stack>org.codehaus.xfire.fault.XFireFault: For input string: "?"at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:70)at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)at org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:114)at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source)Caused by: java.lang.NumberFormatException: For input string: "?"at java.lang.NumberFormatException.forInputString(Unknown Source)at java.lang.Long.parseLong(Unknown Source)at java.lang.Long.valueOf(Unknown Source)at com.sun.xml.bind.DatatypeConverterImpl._parseLong(DatatypeConverterImpl.java:144)at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$19.parse(RuntimeBuiltinLeafInfoImpl.java:703)at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$19.parse(RuntimeBuiltinLeafInfoImpl.java:706)at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:241)at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:202)at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:455)at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:433)at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:71)at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:275)at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:209)at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:358)at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:337)at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:198)at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162)at org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)at org.codehaus.xfire.service.binding.DocumentBinding.readMessage(DocumentBinding.java:32)at org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:182)at org.codehaus.xfire.jaxws.JAXWSBinding.readMessage(JAXWSBinding.java:55)at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)... 12 more</stack>         </detail>      </soapenv:Fault>   </soapenv:Body></soapenv:Envelope>

now if I execute the same Login Request using https on second MSE I get same error getting response javax.net.ssl.SSLpeerunverifiedException: peer not authenticated.

so first MSE https://1.1.1.1/aaa/ and second MSE https://2.2.2.2/aaa/ get same error while http://2.2.2.2/aaa/ get a response but looks like garbage to me.

Can you tell me what MSE version(s) you are running? And post the SOAP xml you used?

Thanks,

Tom

Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

Test example I mentioned here... MSE with IP 1.1.1.1 is 7.5.102.0  and other MSE with Http enabled of IP 2.2.2.2 is 7.0.240.0

WSDL Source For MSE Mobility Services (version7.4).zip was downloaded from Cisco dev site.

Capture1.JPG.jpg

Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

The XML request is still not correct: use either <typ:AesLogin> or <typ:Credential>, but not both.

Also I'm not sure 7.4 WSDL (or even 7.1 WSDL) will work with 7.0 MSE. I'll check on this.

View solution in original post

Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

MSE1: MSE with 7.5.102

MSE2: MSE with 7.0.240 and http enabled for troubleshooting.

This is on MSE1. Response is same on another MSE2 also when https:// is used

MSE-7.5.102.JPG.jpg

This is for MSE2  using http://IPaddress/mse. finally have some response. Is this a success in authentictaion?

MSE-7.0.240.JPG.jpg

On MSE2 I tried to run a request after above response (assuming a success in authentication) and got below return.

MSE-7.0.240_Request1.JPG.jpg

Highlighted
Beginner

Re: Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

Yes, that is a successful reponse.

Let me back up, and for purposes of discussion, use 'AesLogin' tag instead of 'Credential' (since that is working for me). That will return 'AesBusinessSession' tag. You need to take the id value from that, and supply that same value for subsequent location API calls, For example my Login request returned id="21386". So for GetServerInfo you would set the id property in the AesBusinessSession tag to that same value:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:loc="http://cisco.com/mse/location" xmlns:typ="http://cisco.com/mse/types">

  <soapenv:Header/>

  <soapenv:Body>

      <loc:GetServerInfo>

        <typ:AesBusinessSession  id="21386"/>

      </loc:GetServerInfo>

  </soapenv:Body>

</soapenv:Envelope>

Highlighted
Beginner

Re: Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

Tom, That worked!

Any ideas on how to send request through https?

Thank you for your time!

Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

https should 'just work' (that is the default that MSE accepts). What symptoms are you seeing?

Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

As you see here http works...

Capture_http.JPG.jpg

After disabling http I tried same login request and as you see below https returns SSLPeerUnverifiedExpception:peer not authenticated

Capture_https.JPG.jpg

Access directly to the MSE through https: gives below response...(to make sure https is enabled)

Capture_https_browser.JPG.jpg

Highlighted
Beginner

Re: Newbie-MSE WSDL - SOAPUI- Java peerunverifiedException

I think this is caused by expired or invalid certificate on the server. I'll try to find out more about this.

As another point of reference, open 'https://10.3.52.243/docs/' with your browser. That may bring up certificate error, but if you proceed, it should bring up REST API docs (on 7.5 or later).

Content for Community-Ad
Cisco Community July 2020 Spotlight Award Winners
This widget could not be displayed.