Accessing WSDL gives problem..........

Hi all,
I'm using NWDS SP12. I'm trying to create deployable proxy out of one WSDL file, which is residing in the server that needs authentication to access that. So, when I give URL to that particular WSDL when generating proxy, I'm not able to do so. How do I give authentication parameter there???
Then I had tried downloading that WSDL file to my local file system and tried with that also...but no luck...
Do anyone have any idea????
Regards,
Mausam

Hi Bhavik,
Thanks for replying.
I think that was the problem with SP11.....but in SP12 its working fine. I'm able to consume any other services, means I'm able to create proxy for other services like Google.....
But problem here is, my WSDL file is on the server which requires authentication to access WSDL. So, when I try to give the URL of WSDL its giving HTTP 401 error(unauthorised access). So, the question is "how do I give those parameters while generating proxy for WSDL?"
Regards,
Mausam

Similar Messages

  • Init method in Weblogic 5.1 gives  problem

              I have used init method in 4.5
              the same method gives problem in 5.1
              C:\weblogic\myserver\classfiles\jsp_servlet\_addcontract.java:89: The method void init(javax.servlet.ServletConfig) declared in class jsp_servlet._addcontract cannot override the final method of the same signature declared in class weblogic.servlet.jsp.JspBase. Final methods cannot be overridden.
              probably occurred due to an error in /addContract.jsp line 11:
              

    Use jspInit method.
              harish <[email protected]> wrote:
              > I have used init method in 4.5
              > the same method gives problem in 5.1
              > C:\weblogic\myserver\classfiles\jsp_servlet\_addcontract.java:89: The method void init(javax.servlet.ServletConfig) declared in class jsp_servlet._addcontract cannot override the final method of the same signature declared in class weblogic.servlet.jsp.JspBase. Final methods cannot be overridden.
              > probably occurred due to an error in /addContract.jsp line 11:
              Dimitri
              

  • PeopleSoft Query Access Services security problems, in other words does QAS

    PeopleSoft Query Access Services security problems, in other words does QAS bypass PeopleSoft?

    Rod,
    Can you please post the entire contents of the dataserver summary screen...thanks.
    Typically the "No suitable driver exists" error is due to trying to connect to an unsupported DB version with the driver.  For example using the MSSQL 2000 driver to connect to MSSQL 2005, be sure that you have downloaded both the MSSQL 2000 (una2000.jar) and 2005 jars and have the proper classpaths specified.
    Sam

  • I bought an iPhone 5 around fifteen days back and it has already started to give problem with the on/off button. I have to press it five six times to switch it on or off. I am so frustrated by the fact that if I bring it to the service centre, I am going

    I bought an iPhone 5 around fifteen days back and it has already started to give problem with the on/off button. I have to press it five six times to switch it on or off. I am so frustrated by the fact that if I bring it to the service centre, I am going to get a refurbished phone in place of my brand new phone which I just bought. The idea of a used phone repulses me. Any solutions ?

    sumeshdua wrote:
    The idea of a used phone repulses me.
    Why?  Your current phone is used... it has been since the instant it was removed from the shrink wrap and turned on.
    sumeshdua wrote:
    Any solutions ?
    Live with the phone as is.
    Take the device to Apple for evaluation... it may not need replacement.
    Even if it does, neither you or the Apple tech should be able to tell if the replacement is new or refurbished.

  • My computer continually asks me to enter my password for Keychain access. This problem is continuos and I am having trouble with eliminating it. I have changed my password through Security and my Accounts numerous times to no avail.  Is there anythin

    My computer continually asks me to enter my password for Keychain access. This problem is continuos and I am having trouble with eliminating it.
    I have changed my password through Security and my Accounts numerous times to no avail.
    Is there anything I can do other than Resetting the entire computer and re installing all of the software, apps, etc.etc.

    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select
              Change Settings for Keychain "login"
    In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
              Keychain Access ▹ Preferences... ▹ First Aid
    There are four checkboxes in the window that opens. Check all of them. if they're not already checked. Close the window.
    Select
              Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.
    If you use iCloud Keychain, open the iCloud preference pane and uncheck the Keychain box. You'll be prompted to delete the local iCloud keychain. Confirm. Then re-check the box. Follow one of the procedures described in this support article to set up iCloud Keychain on an additional device.

  • Problems in authentication while accessing WSDL from  Sharepoint

    I am trying to access objects from a SharePoint on my company site, which requires Authentication and Authorization in order to access  the same. I have written a client and am trying to access the WSDL using Axis 1.0.
    I am  getting an authentication error whiletyring to access the same . The details are listed below.  Is there any workaround you may be knowing to get over this firewall problem, that they may be facing ?
    Exception in thread "main" AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultString: (401)Unauthorized
    faultActor: null
    faultDetail:
          null: return code:  401
    &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd">
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;You are not authorized to view this page&lt;/TITLE&gt;
    &lt;META HTTP-EQUIV=&quot;Content-Type&quot; Content=&quot;text/html; charset=Windows-1252&quot;&gt;
    &lt;STYLE type=&quot;text/css&quot;&gt;
      BODY { font: 8pt/12pt verdana }
      H1 { font: 13pt/15pt verdana }
      H2 { font: 8pt/12pt verdana }
      A:link { color: red }
      A:visited { color: maroon }
    &lt;/STYLE&gt;
    &lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE width=500 border=0 cellspacing=10&gt;&lt;TR&gt;&lt;TD&gt;
    &lt;h1&gt;You are not authorized to view this page&lt;/h1&gt;
    You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.
    &lt;hr&gt;
    &lt;p&gt;Please try the following:&lt;/p&gt;
    &lt;ul&gt;
    &lt;li&gt;Contact the Web site administrator if you believe you should be able to view this directory or page.&lt;/li&gt;
    &lt;li&gt;Click the &lt;a href=&quot;javascript:location.reload()&quot;&gt;Refresh&lt;/a&gt; button to try again with different credentials.&lt;/li&gt;
    &lt;/ul&gt;
    &lt;h2&gt;HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.&lt;br&gt;Internet Information Services (IIS)&lt;/h2&gt;
    &lt;hr&gt;
    &lt;p&gt;Technical Information (for support personnel)&lt;/p&gt;
    &lt;ul&gt;
    &lt;li&gt;Go to &lt;a href=&quot;http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services&lt;/a&gt; and perform a title search for the words &lt;b&gt;HTTP&lt;/b&gt; and &lt;b&gt;401&lt;/b&gt;.&lt;/li&gt;
    &lt;li&gt;Open &lt;b&gt;IIS Help&lt;/b&gt;, which is accessible in IIS Manager (inetmgr),
    and search for topics titled &lt;b&gt;About Security&lt;/b&gt;, &lt;b&gt;Authentication&lt;/b&gt;, and &lt;b&gt;About Custom Error Messages&lt;/b&gt;.&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;

    As a workaround I can start the application in debug mode, log into the Weblogic console and stop then restart the deployment and this issue goes away, sort of a pain but it does work.

  • Problem in accessing  WSDL

    Hi All,
        We have some WSDL Files that are created in XI using Bapi. Now while we are trying to access these WSDL i am getting an error
    "com.sap.tc.webdynpro.progmodel.context.ContextException: Node(CreateOrdersComp.vnGet_Partner_Details_Input.chnGet_Partner_Details_Output.chnEt_Partner_Details): cannot bind or add elements because the node has no valid parent"
    Previously when we faced the same problem and we were able to solve it by the help of this link
    serialization error [problem with setting attr values in the context]
    Now they have recreated the WSDL and we are not able to solve it with the same link.
    Can someone of you help me on this.
    Regards,
    Surya

    HI Surya,
    could u tell me ain which line are facing this problem???
    if it is during setting the import parameters in the controller for the execution of the WSDL, then u need to create the object of the complex data node which is present in the WSDL.
    we also had this problem before as we were directly tring to set the import parameters in the InputNode, which did not work.
    if the import parameters are not accepted directly in the WSDL, this error is thrown sometimes, however try creating the object of the complex type and set the parameters there and execute it, It might work
    Regards,
    Poojith MV

  • Approving the access request gives error in Sharepoint Foundation 2013 / Email notification codepage problem

    Hello
    On our SharePoint Foundation 2013 server approving Access Requests fails with "request approval failed" after pressing the approve button. The user is site administrator, site collection administrator and site owner.
    In the ulsviewer we see the following error:
    System.NotSupportedException: No data is available for encoding 1033.     at System.Text.Encoding.GetEncodingRare(Int32 codepage)     at System.Text.Encoding.GetEncoding(Int32 codepage)     at Microsoft.SharePoint.Email.SPMailMessageHelper.GetSocialNotificationMailMessage(SPWeb
    web, String senderAddress, String senderName, Boolean useSenderAddressAsFromAddress, String recipientAddress, CultureInfo recipientCulture, String subject, String sidebarHtml, String descriptionHtml, String customMessageHtml, List`1 embeddedAttachments)    
    at Microsoft.SharePoint.SPSharingEmailHelper.SendAccessRequestsEmail(SPCachedItemEventProperties eventProperties, SPUser sender, String message, SPUser recipient, String recipientEmailAddress, String strSubject, String body)     at Microsoft.SharePoint.SPSharingEmailHelper.SendRequestorNotification(SPCachedItemEventProperties
    eventProperties, String objRequestedTitle, SPUser reqByUser, SPUser reqForUser, String message, Boolean isMessageUpdate, Int32 status)     at Microsoft.SharePoint.SPAccessRequestsOperationHandler.HandleStatusChangingToApprove(SPCachedItemEventProperties
    properties, Int32 reqByUserId, Int32 reqForUserId, Int32 newStatus, SPUserCollection users, SPGroupCollection groups, IEnumerable`1 roleDefs)     at Microsoft.SharePoint.SPAccessRequestsOperationHandler.HandleRequestStatusChanging(SPCachedItemEventProperties
    properties, SPUserCollection users, SPGroupCollection groups, IEnumerable`1 roleDefs)     at Microsoft.SharePoint.SPAccessRequestsOperationHandler.ItemUpdating(SPCachedItemEventProperties properties, SPUserCollection users, SPGroupCollection
    groups, IEnumerable`1 roleDefs)     at Microsoft.SharePoint.SPAccessRequests.UpdateItem(Int32 newStatus, SPUser reqFor, String convStr, String permType, Int32 permissionLevel, Boolean extendInvitation, String anonLinkType, SPList accReqList,
    SPListItem item, SPUserCollection users, SPGroupCollection groups, IEnumerable`1 roleDefs)     at Microsoft.SharePoint.SPAccessRequests.ChangeRequestStatusCore(Int32 newStatus, SPUser reqFor, String convStr, String permType, Int32 newPermissionLevel,
    Boolean extendInvitation, String anonLinkType, SPList accReqList, SPListItem request)     at Microsoft.SharePoint.SPAccessRequests.ChangeRequestStatus(Int32 itemId, Int32 newStatus, SPUser reqForUser, String convStr, String permType, Int32
    permissionLevel, Boolean extendInvitation, String anonLinkType, SPWeb web)     at Microsoft.SharePoint.SPAccessRequests.ChangeRequestStatus(Int32 itemId, Int32 newStatus, String convStr, String permType, Int32 permissionLevel)    
    at Microsoft.SharePoint.ServerStub.SPAccessRequestsServerStub.ChangeRequestStatus_MethodProxy(XmlNodeList xmlargs, ProxyContext proxyContext)     at Microsoft.SharePoint.ServerStub.SPAccessRequestsServerStub.InvokeStaticMethod(String methodName,
    XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeStaticMethodWithMonitoredScope(String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)    
    at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeStaticMethod(String typeId, String methodName, XmlNodeList xmlargs, Boolean& isVoid)     at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStaticMethod(XmlElement
    xe)     at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe)     at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe)     at Microsoft.SharePoint.Client.ClientMethodsProcessor.Process() 449c7b9c-6cec-f09a-9792-3d76c4d7e351
    The server is running on an English Windows 2012 Server and also the English version of SharePoint Foundation 2013 with the June 2013 CU.
    We see exactly the same error when add users to a group with the option "Send an email invitation" enabled.
    Any ideas what could cause this problems?
    Regards,
    Reinhard

    Hi Reinhard ,
    According to your error message, it says that no data is available after  encoding the social notification mail message. It  should be caused by the E-Mail encoding setting.
    For troubleshooting your issue, please check the character set of your E-Mail Settings:
    Verify that the user account that is performing this procedure is a member of the Farm Administrators group.
    On the Central Administration Home page, click System Settings.
    On the System Settings page, in the E-Mail and Text Messages(SMS) section, click Configure outgoing e-mail settings.
    On the Outgoing E-Mail Settings page, make sure
    Character set setting is  65001(Unicode UTF-8).
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Weird problem with Axis in JBoss accessing WSDL

    Hi
    for an application, Axis web services are used and everything is running inside JBoss 4.0.2. The WSDL file is dynamically generated by Axis and clients are set up to get this WSDL file from the Service before making a call.
    Clients are making web service calls to the application and everything runs perfectly. However, after some time an error occurs which causes the WSDL file not being available any more. According to the error messages it looks like it can not find some classes, and looking at the Axis code (AxisServlet.java:226) this is where the PrintWriter is instantiated - which is not any special but usual Java class.
    The only solution so far is to restart the JBoss, after which the WSDL is available again.
    This behavior I can not understand - any help would be greatly appreciated.
    Thanks
    Michal
    2006-08-30 07:18:21,648 WARN [WebappClassLoader,openJARs] Failed to open JAR
    java.util.zip.ZipException: No such file or directory
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:204)
    at java.util.jar.JarFile.<init>(JarFile.java:132)
    at java.util.jar.JarFile.<init>(JarFile.java:97)
    at org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1544)
    at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1763)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:226)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    2006-08-30 07:18:21,649 ERROR [[AxisServlet],invoke] Servlet.service() for servlet AxisServlet threw exception
    java.lang.NullPointerException
    at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1766)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:226)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)

    The problem was I had to write in my wsdd file:
    <service name="PurchaseService"
    provider="java:RPC"
    style="document"
    use="literal">
    Thanks

  • WSDL - Java problem

    Hi all,
    I have been trying to generate a web service from a WSDL file (which, in my opinion, is the best way to create a web service when you don't already have a program). But there's some problems I run across which I can't seem to find the solution for.
    My traject should be: WSDL -> Java Files -> Compiling -> Deployment, where my primary WSDL should not be changed (or just endpoint address)
    I use JWSDP 1.2.
    1)
    When I try to replicate the helloservice, static stub example with my own WSDL file, I receive the following error:
    wscompile.bat -gen:server -d build -classpath build config-wsdl.xml
    error: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}date" and Java type "java.util.Calendar"
    can anyone explain what this is?
    2)
    I tried -import and -keep instead of -gen:server, to get my Java files. This worked and created a lot of java files and even an implementation file, where I could create my webservice. So far it looked good, but after compiling and deploying, the service does not work. The problem is that the generated classes all have changed names (first letter lowercase, instead of uppercase), resulting in a non-working application.
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.rpc.server.http.JAXRPCContextListener
    java.lang.NoClassDefFoundError: MyService/MyProtocol_myOperation_ResponseStruct
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at com.sun.xml.rpc.server.http.JAXRPCRuntimeInfoParser.loadClass(JAXRPCRuntimeInfoParser.java:150)
    Where myOperation in my WSDL file is called 'MyOperation'
    So now I'm stuck, can anybody help me or give me a step-by-step how to create a service

    Here's how I do it. I hope this won't annoy other people since this will be a long code post.
    1) Create the java interface: DateServiceInf.java:
    package MyService;
    import MyService.holders.*;
    public interface DateServiceInf extends java.rmi.Remote {
         public void setDate(java.util.Date date) throws java.rmi.RemoteException;
         public void getDate(DateHolder dholder) throws java.rmi.RemoteException;
    2) Create the java implementation: DateServiceImpl.java:
    package MyService;
    public class DateServiceImpl implements MyService.DateServiceInf{
         java.util.Date date = new java.util.Date();     //current date
         public DateServiceImpl() {
         public void getDate(MyService.holders.DateHolder dholder) throws java.rmi.RemoteException{
              dholder.setDate(date);
         public void setDate(java.util.Date date) throws java.rmi.RemoteException{
              this.date = date;
    3) Create the holder class: DateHolder.java
    package MyService.holders;
    public class DateHolder {
         private java.util.Date date;
         public DateHolder() {
              date = null;
         public java.util.Date getDate() {
              return date;
         public void setDate(java.util.Date date) {
              this.date = date;
    Compile the whole thing now.
    (you can skip to step 5 below)
    4) Using Apache axis to generate the wsdl file, assume the unzip axis1.1 is located at d:\axis-1_1 (windows bat file) and jdk at c:\j2sdk1.4.0: (make sure all files above are located in the proper directories (packages).
    @echo off
    set AXIS_HOME=d:\axis-1_1
    set AXIS_LIB=%AXIS_HOME%\lib
    set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;%AXIS_LIB%\wsdl4j.jar
    c:\j2sdk1.4.0\bin\java -cp %AXISCLASSPATH%;. org.apache.axis.wsdl.Java2WSDL -l"http://www.mycomp.com/MyService" -n "urn:MyService" -p"MyService" "urn:MyService" -o MyService.wsdl MyService.DateServiceInf
    Here is the generated file using axis:
    <wsdl:definitions targetNamespace="urn:MyService" xmlns:impl="urn:MyService" xmlns:intf="urn:MyService"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://holders.MyService"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://holders.MyService">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="DateHolder">
    <sequence>
    <element name="date" nillable="true" type="xsd:dateTime"/>
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message name="setDateResponse">
    </wsdl:message>
    <wsdl:message name="getDateResponse">
    </wsdl:message>
    <wsdl:message name="setDateRequest">
    <wsdl:part name="in0" type="xsd:dateTime"/>
    </wsdl:message>
    <wsdl:message name="getDateRequest">
    <wsdl:part name="in0" type="tns2:DateHolder"/>
    </wsdl:message>
    <wsdl:portType name="DateServiceInf">
    <wsdl:operation name="getDate" parameterOrder="in0">
    <wsdl:input name="getDateRequest" message="impl:getDateRequest"/>
    <wsdl:output name="getDateResponse" message="impl:getDateResponse"/>
    </wsdl:operation>
    <wsdl:operation name="setDate" parameterOrder="in0">
    <wsdl:input name="setDateRequest" message="impl:setDateRequest"/>
    <wsdl:output name="setDateResponse" message="impl:setDateResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="MyServiceSoapBinding" type="impl:DateServiceInf">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getDate">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getDateRequest">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:input>
    <wsdl:output name="getDateResponse">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setDate">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="setDateRequest">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:input>
    <wsdl:output name="setDateResponse">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="DateServiceInfService">
    <wsdl:port name="MyService" binding="impl:MyServiceSoapBinding">
    <wsdlsoap:address location="http://www.mycomp.com/MyService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    5) Generate the wsdl using the Sun's implementation. Assume that the installation is located at: C:\j2sdkee1.4
    @echo off
    c:\j2sdk1.4.0\bin\java -cp . org.apache.axis.wsdl.Java2WSDL -l"http://www.mycomp.com/MyService" -n "urn:MyService" -p"MyService" "urn:MyService" -o MyService.wsdl MyService.DateServiceInf
    (those are 2 lines: echo and java)
    You may get a warning here.
    Here is the generated file from Sun:
    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://www.mycomp.com/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="http://www.mycomp.com/types" xmlns:tns="http://www.mycomp.com/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="DateHolder">
    <sequence>
    <element name="date" type="dateTime"/></sequence></complexType></schema></types>
    <message name="DateServiceInf_getDate">
    <part name="DateHolder_1" type="ns2:DateHolder"/></message>
    <message name="DateServiceInf_getDateResponse"/>
    <message name="DateServiceInf_setDate">
    <part name="Date_1" type="xsd:dateTime"/></message>
    <message name="DateServiceInf_setDateResponse"/>
    <portType name="DateServiceInf">
    <operation name="getDate" parameterOrder="DateHolder_1">
    <input message="tns:DateServiceInf_getDate"/>
    <output message="tns:DateServiceInf_getDateResponse"/></operation>
    <operation name="setDate" parameterOrder="Date_1">
    <input message="tns:DateServiceInf_setDate"/>
    <output message="tns:DateServiceInf_setDateResponse"/></operation></portType>
    <binding name="DateServiceInfBinding" type="tns:DateServiceInf">
    <operation name="getDate">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <operation name="setDate">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
    <service name="DateService">
    <port name="DateServiceInfPort" binding="tns:DateServiceInfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>

  • Problems accessing parameters, files - problems in general.

    I've been posting my problems to comp.lang.java.programmer but Google Groups is exceedingly slow to update and I've been stuck on this for nearly two whole days:
    I am developing what will be a series of web utilities for our company and our client's company. Unfortunately I am hampered by the fact that my Java is not that good having come from a C++ background.
    My current setup is Windows XP, JDK 1.3.1.07 (which is what our client is running), Tomcat 4.1 for testing on my local box.
    I've been middling around with small examples and decided to do something slightly more complex. What I am trying to do is access a file that is described in web.xml as a parameter. However when ever I run the program it is unable to find the file. All the documentation I have (web-based plus a Professional Java Server Programming J2EE Edition - way over my head) either skims across it/takes it as read it will be set up correctly/doesn't touch it at all.
    I thought I was trying to access the wrong directory so I mapped the file to the root of C and still can't access it - it always comes back as null. Also between attempts I restart the Tomcat server so it always loads in the web.xml file.
    This is my web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description>
      <servlet>
        <servlet-name>LogIn</servlet-name>
        <servlet-class>website.LogIn</servlet-class>
        <init-param>
          <param-name>passwordFile</param-name>
          <param-value>C:\\passwords.txt</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>LogIn</servlet-name>
        <url-pattern>/logged</url-pattern>
      </servlet-mapping>
    </web-app>And the Java:
    package website;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    *  Handles the login to the administrators section of the website
    public class LogIn extends HttpServlet
        private String passwordFile;
        /** Read the password file from the location specified
         *  by the passwordFile initialization parameter.
        public void init(ServletConfig config) throws ServletException
            super.init(config);
            passwordFile = config.getInitParameter("passwordFile");
            System.out.println(passwordFile);
            if (passwordFile == null)
                System.out.println("The \"passwordFile\" property must be set to a file name");
            try
            catch (Exception e)
                System.out.println("Error: Unable to read passwordFile.");
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    }It was suggested on comp.lang.java.programmer to check the path that the system was thinking I was searching which I did by inserting this code fragment:
         // initialise the servlet and load password(s)
    //     super.init(config);
    //     passwordFile = config.getInitParameter("passwordFile");
         // added code
         passwordFile = "passwords.txt";
         File f = new File( passwordFile );
         System.out.println( f.getAbsolutePath() );
         // added code.
            ...This lead me to learn that the directory being returned was:
    C:Program Files\Apache Group\Tomcat 4.1\passwordFile.txt
    Which is strange since I would of thought that the lowest directory
    that is visible to the class would of been ROOT (hence it's name).
    Does this mean if I copy the passwordFile.txt to the above directory
    it would work? Actually no. I still can't get the filename as a
    parameter from web.xml which is frustrating. If you could give me any
    pointers on what might be wrong then that would be cool.
    I thought I could move forward by accessing the file directly. But no: An addition of f.exists() to check that the file exists returns false. I've now got a copy of passwords.txt in every single directory from the classes directory all the way down to C:\ and it still doesn't work.
    I hope someone can help out here since this is very frustrating to be stuck on something so basic as file handling.
    Graham Reeds,
    http://omnieng.co.uk | [email protected]

    I can see how this is frustrating but it should be fixable. The last example you posted won't work because you have "passwords.txt" instead of "c:/passwords.txt".
    If you're still looking for a solution could you cut and paste the following code into your servlet code and then post the results?
    // Check that init param is read correctly
    String filename = config.getInitParameter("passwordfile");
    System.out.println("config param = " + filename);
    // try filenames
    String[] filenames = new String[] {"c:/passwords.txt", "c:\\passwords.txt", "passwords.txt"};
    for (int i=0; i < filenames.length; ++i) {           
       File file = new File(filenames);
    System.out.println("File " + filenames[i] + " - exists = " + file.exists());
    System.out.println("Abs path = " + file.getAbsolutePath());
    This is based on the file c:\passwords.txt existing - if I have the wrong filename, please adjust. Also, you may need to change <i> to [[i]i] in a couple of places.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • ColdFusion WSDL Integration Problem

    I am trying to use a thrid-party WSDL system from a CFMX 7.01
    installation on Windows 2003. A request to a simple (i.e. no
    parameters) method returns good data:
    CFML:
    <cfinvoke webservice="
    http://prod3.ogangi.com/contentManagerWS/services/Version?wsdl"
    method="getVersion" returnvariable="results">
    <cfoutput>#results#</cfoutput>
    However, using a more complex method throws an error
    everytime:
    CFML:
    <cfinvoke webservice="
    http://prod3.ogangi.com/contentManagerWS/services/Categories?wsdl"
    method="getCategory" returnvariable="results">
    <cfinvokeargument name="categoryid" value="294"/>
    <cfinvokeargument name="seller" value="jamaica"/>
    </cfinvoke>
    <cfoutput>#results#</cfoutput>
    ERROR MSG (click the link):
    http://kryptos.thefactoryi.com/bmobilepulse/error_result.cfm
    I checked the WSDL against the following validator and
    everything seems to be functioning correctly:
    http://www.mgateway.com/wsdlClient.htm
    NOTE: Using the getCategory method use "294" for categoryid
    and "jamaica" for seller.
    Using DreamWeaver, the WSDL service cannot be added to the
    Components toolbar (when using CF), but can be added when using any
    other document type (JSP, ASP VB, ASP #).
    What am I missing? I'm not an expert w/ WSDL, but after hours
    of trying other examples and tutorials I cannot figure out this
    problem. Any insight or help will be deeply appreciated!
    -jh

    there is a problem with the webservice in the
    CategoriesService.class. that is why it wont add in dreamweaver. it
    tries to validate the wsdl for coldfusion. i have also had mixed
    results with using a wsdl file that has multiple methods with the
    same name, i.e. the three getCategoryList methods in this wsdl
    file. so if you do get it working, you may want to manually edit
    the wsdl to use only one method and access the modified wsdl file
    locally on the cf server.
    hth

  • Updated windows. Firefox gives "Problem loading page" error everytime now.

    my computer told me that windows updates were available and that I needed to restart so I did. When the restart was complete firefox doesn't work at all now. It jut gives me the "Problem loading page" error no matter what website I visit. I have tried removing it from my windows fire wall and re-adding it but that did not help. I also try to uninstall firefox and reinstall but that didn't help either.
    I am using Widows 7 for what it's worth. Any help would be greatly appreciated!

    Try these in order.
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''Network.'''
    Look for '''Configure How Firefox Connects''' and press the '''Settings''' button.
    Check the settings.
    Some problems occurs when your Internet security program was set
    to trust the previous version of Firefox, but no longer recognizes your
    updated version as trusted. Now how to fix the problem: To allow
    Firefox to connect to the Internet again;
    * Make sure your Internet security software is up-to-date (i.e. you are running the latest version).
    * Remove Firefox from your program's list of trusted or recognized programs. For detailed instructions, see
    '''[https://support.mozilla.org/en-US/kb/configure-firewalls-so-firefox-can-access-internet Configure firewalls so that Firefox can access the Internet.]''' {web link}
    '''[http://www.mozilla.org/en-US/firefox/all/ Download Firefox Full Installer For All languages And Systems]''' {web link}
    Save the file. Then;
    Using your file browser, open the '''Programs''' folder on your computer.
    '''Windows:''' C:\Program Files
    C:\Program Files (x86)
    '''Mac:''' Open the "Applications" folder.
    '''Linux:''' Check your user manual.
    Look for, and rename any Mozilla and Firefox folders by adding '''.old''' to them.
    Now run the full installer.
    If all goes well, remove the OLD folders when you are done.

  • WSDL Connection Problems - Workbench

    Hi, Im a fairly new user to Livecycle, and I'm running into a problem using the WSDL data connection.
    I already have 2 drop down lists being populated by a database though Adobe Workbench, What I'm trying to do is get the two selections the User selects(two different locations) and output a distance between those two points. It's for a travel expenses form I'm designing. I have a process in Workbench that when I Invoke, works correctly in letting me enter two locations and then displaying the distances between those points form a database, however when i try call the WSDL Soap address from the Form, it doesn't seem to call the process at all. I am aware you cannot call a web service thought the preview PDF button in designer, and Im checking if it works by deploying the application in workbench, then accessing it though the companies database.
    Any help would be appeciated,
    Thanks

    Hi,
    I have not had any problem calling a SOAP webservice from the PDF Preview, I would guess you have some sort of security issue.  If you open the form in Acrobat then go to Edit ... Preferences ... Security (Enhanced) there is a "cross domain log file" checkbox.  If this is not selected then set it and see if anything useful appears in the log file.
    Otherwise try some of the HTTP debuggers like Fiddler.
    Regards
    Bruce

  • Remote access vpn ESP problem

    I have remote access vpn configured on cisco 2901 router. Everything works good exept ipad 2 3g. When i am connecting with ipad from 3g network it connects but  it is unable to access corporate resources. I talked to my telephone provaider and they told me that they have some nat problems with ESP. and adviced me to force vpn clients to use udp ports 500 and 4500. How i have to configure my router to accomplish this ?
    Thanks in advance

    Hello,
    Isakmp uses port UDP 500 for the managment connection establishment ( Phase 1).
    NAT-T ( used when they are nat devices in between two VPN endpoints) uses port UDP 4500.
    So on your Router NAT-T is configured by default, all you got to do is if you have an ACL on the outside interface allow this traffic (Isakamp and NAT T) On some of the newer IOS versions you do not have to apply the ACL as by default the VPN traffic (encrypted traffic bypasses the ACL).
    So your requirement is done by default, great thing right!! You can let your Telephone provider you are ready for the test.
    Julio
    Do rate all helpful posts!!

Maybe you are looking for