-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix support for web services that require authentication #26
Comments
This works: |
Hi, |
Won't fix! A WSDL should be public. |
Not all WSDLs are public. If they are used for communication between internal systems, that should not be visible to the outside. |
If they are used internal then the communication could be visible inside the organization. In case you need more security you could fork SOA Model and implement it. Just extend the external resolver class around line 113: I think to implement it you need to provide the HTTP client with a configuration. |
What is the Fix Predic8 .. I am still getting same error . I am using 1.6.1 version maven dependency .How To add authenticationDetails to the wsdlParser |
We do not plan to support authentication for WSDL download. You can place an Membrane Service Proxy infront os the Model and do the authentication there. |
base on okornevs answer, this worked for me:
in the end, your BasicAuthenticationResolver class should look like this:
|
thanks dear arash, |
Right now it fails with
Exception in thread "main" groovy.lang.MissingMethodException: No signature of method: com.predic8.xml.util.BasicAuthenticationResolver.resolve() is applicable for argument types: (java.lang.String, java.lang.String) values: [...?wsdl, ...]
Possible solutions: resolve(java.lang.Object)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at com.predic8.soamodel.AbstractParser.getResourceToken(AbstractParser.groovy:45)
at com.predic8.soamodel.AbstractParser.this$2$getResourceToken(AbstractParser.groovy)
at com.predic8.soamodel.AbstractParser$this$2$getResourceToken.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at com.predic8.soamodel.AbstractParser.parse(AbstractParser.groovy:34)
at com.predic8.wsdl.WSDLParser.super$2$parse(WSDLParser.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1074)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
at com.predic8.wsdl.WSDLParser.parse(WSDLParser.groovy:29)
at com.predic8.wsdl.WSDLParser$parse.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at com.predic8.wsdl.WSDLParser.parse(WSDLParser.groovy:25)
at com.xframework.xsoap.impl.Predic8WSDLParserImpl.parse(Predic8WSDLParserImpl.java:72)
at com.xframework.xsoap.impl.Predic8WSDLParserImpl.main(Predic8WSDLParserImpl.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
The text was updated successfully, but these errors were encountered: