Import from WSDL - Error message ~Authentication Failure~

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

dougbm
Ebase User
Posts: 8
Joined: Wed Jan 23, 2008 11:51 am
Location: Perth, WA, Australia

Import from WSDL - Error message ~Authentication Failure~

#1

Postby dougbm » Fri May 02, 2014 4:45 am

I'm attempting to connect a Web service resource to Microsoft's Exchange Web Services (EWS), but am getting an error message when I attempt to import the WSDL.

EWS runs over HTTPS, so I've created a keystore containing the required certificate and, following the instructions in the online help 'Web Services Over HTTPS' article, have added entries to service.bat and start_ebase_designer.bat as shown below. However, when I try to import the WSDL, I receive the following message:

Code: Select all

WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'https://wcc-email.internal.wanneroo.wa.gov.au:444/EWS/Services.wsdl'.: java.io.IOException: Authentication failure
My initial thinking was that this likely related to the keystore password, but adding this to the connection strings has not fixed the problem. Ebase version is 4.5.1, build 20131115.

Can anyone offer any guidance?

The changes I've made to service.bat and start_ebase_designer.bat are:

service.bat, under section 'more extra parameters':

Code: Select all

"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties -Djavax.net.ssl.trustStore=\\wcc-web-apps\e$\Apps\ebase451\UfsServer\tomcat\bin\ebaseKeystore.keystore -Djavax.net.ssl.trustStorePassword=myPassword" --JvmMs 128 --JvmMx 256
start_ebase_designer.bat, under section ':run"

Code: Select all

set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dawt.useSystemAAFontSettings=true -Dsun.java2d.noddraw=true -Dlog4j.configuration=file:/%~dsp0/properties/log4j.properties -Dhttp.nonProxyHosts="localhost|127.0.0.1" -Djavax.net.ssl.trustStore=\\wcc-web-apps\e$\Apps\ebase451\UfsServer\tomcat\bin\ebaseKeystore.keystore -Djavax.net.ssl.keyStorePassword=myPassword
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Fri May 02, 2014 7:46 am

Hi Doug,

Have you followed the instructions here:

http://dev-docs.verj.io/ufs/doc/web_services_https.htm

The error will be on the client side as this is importing the WSDL.

I notice that the -Djavax.net.ssl.trustStore in on a network drive \\wcc-web-app\..... I am not sure this is allowed. I think it has to be a mapped drive or a direct path on a hard drive on the computer.

Also are you sure the -Djavax.net.ssl.trustStorePassword=myPassword is required either.

Kind regards

Steve
0 x

dougbm
Ebase User
Posts: 8
Joined: Wed Jan 23, 2008 11:51 am
Location: Perth, WA, Australia

#3

Postby dougbm » Thu May 08, 2014 2:57 am

Hi Steve
Thanks for the prompt response, sorry to have been a while coming back.
I've corrected those paths to local ones, shown below, and have taken the password config statement out (though does not Ebase require the password to access the keystore?).
I've been working from the document you reference, did go back over it to double check and changed one thing which was that the certificate we'd exported had been created using DER encoding, rather than base 64. However, even with a base 64 certificate and local paths, the error message is the same.
Is there any log I can refer to which might give me more information about the problem? I'm guessing that because it's client side, ufsserver.log may not be much help.
Cheers, Doug

from start_ebase_designer.bat (note that the keystore name has changed because we've created a new keystore holding the base 64 cert):

Code: Select all

set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dawt.useSystemAAFontSettings=true -Dsun.java2d.noddraw=true -Dlog4j.configuration=file:/%~dsp0/properties/log4j.properties -Dhttp.nonProxyHosts="localhost|127.0.0.1" -Djavax.net.ssl.trustStore=E:\Apps\ebase451\UfsServer\tomcat\bin\ebaseKeystore1.keystore
from service.bat:

Code: Select all

"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties -Djavax.net.ssl.trustStore=E:\Apps\ebase451\UfsServer\tomcat\bin\ebaseKeystore1.keystore" --JvmMs 128 --JvmMx 256
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#4

Postby Steve » Thu May 08, 2014 8:17 am

Hi Doug,

There should be an error log for the designer too. This will be located in the UfsClient folder. The file is called error.log.

If you have no luck here, you can always start the designer using the start_ebase_designer.bat and see the exception in the console window.


Kind regards

Steve Upton
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#5

Postby Steve » Thu May 08, 2014 8:29 am

HI Doug,

I am reading into this a bit more and I am not convinced that the Authentication error is an SSL authentication error. Could it be that the client is configured to use a proxy? Or could it be a firewall issue?

Also have you tried downloading the WSDL from 'https://wcc-email.internal.wanneroo.wa. ... vices.wsdl' to your local machine and importing this way?

Then try to invoke the web service from the server and see if you get the same message.

The exception may shed some more light on this.

Kind regards

Steve Upton
0 x

dougbm
Ebase User
Posts: 8
Joined: Wed Jan 23, 2008 11:51 am
Location: Perth, WA, Australia

#6

Postby dougbm » Mon May 12, 2014 5:38 am

Possibly getting slightly further. I've created local file copies of service.wsdl along with messages.xsd and types.xsd, which are referenced from it, and now get the following message:

org.apache.xmlbeans.XmlException: E:\Apps\ebase451\UfsClient\types.xsd:0: error: src-resolve: attribute 'lang@http://www.w3.org/XML/1998/namespace' not found.

I get the same error whether or not a proxy is used.

Re: client logging - file error.log is there, but contains just the following:

log4j:WARN No appenders could be found for logger (com.ebasetech.ufs.api.logging.userlog).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#7

Postby Steve » Mon May 12, 2014 7:51 am

Hi Doug,

Could you email the wsdl and xsd's to:

support@ebasetech.com

I will take a look for you.

Steve
0 x


Who is online

Users browsing this forum: Google [Bot] and 9 guests