(wsdl file )Resource is not allowed....

I have the wsdl file of the webservice.
Now I am trying to access the api of webservice in asp program.
Then it gives Error that resource you are trying to access doesnot allowed.
other extension like .asmx , .asp are easily accessible.
I think that
Q1) ONE REASON may be for error
xmlHTTP.Open ( "Post", "http://localhost/ASP.NET/enterprise.wsdl", false);
that wsdl extension is not registered on IIS.
So please tell me how to register the wsdl extension on IIS.
Q2) or There is any utility to convert the .wsdl file to .asmx format.
because other .asmx webservices are easily accessible.
Code is given below.
Thanks and Regards
Ram Krishna Tripathi
[email protected]
===========
var xmlObj = new ActiveXObject("Msxml2.DOMDocument") ;
var sXml = "<?xml version=\"1.0\" ?>" ;
sXml += "<soap:Envelope "
sXml += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " ;
sXml += "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " ;
sXml += "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" ;
sXml += "<soap:Body>" ;
sXml += "<login xmlns=\"http://salesforce.com/\">" ;
sXml = sXml + "<username>" + a.value + "</username>" ;
sXml = sXml + "<password>" + b.value + "</password>" ;
sXml += "</login></soap:Body></soap:Envelope>"
xmlObj.loadXML(sXml) ;
XmlRequest.innerText = xmlObj.xml ;
var xmlHTTP = new ActiveXObject("Msxml2.XMLHTTP") ;
xmlHTTP.Open ( "Post", "http://localhost/ASP.NET/enterprise.wsdl", false);
xmlHTTP.setRequestHeader("SOAPAction","http://salesforce.com/login") ;
xmlHTTP.setRequestHeader("Content-Type", "text/xml; charset=utf-8" ) ;
xmlHTTP.Send(xmlObj.xml) ;
MyResult.innerText = xmlHTTP.responseText ;
var xmlResponse = xmlHTTP.responseXML ;
answer.innerText = xmlResponse.selectSingleNode("soap:Envelope/soap:Body/loginResponse/loginResult").text ;
}

Usually, when you have a Web service hosted on the Microsoft .NET platform, the common naming rule is to add ?WSDL to the service endpoint.
If you need to build a service from a WSDL file, on the .NET platform, you may want to take a look at WSCF (Schema-Based Contract-First Web Services) from thinktecture.
Hope this helps,
eric

Similar Messages

  • Atg.rest.RestException: Access to the requested resource is not allowed

    Hi,
    While testing REST services, I have created a file in my localconfig directory at atg/rest/security named restSecurityConfiguration.xml and added the following lines to the file,replacing #username# with admin ( for testing purpose).
    <programlisting>
    <rest-security>
    <default-acl value="Profile$login$#admin#:read,write,execute"/>
    </rest-security>
    </programlisting>
    Still while accessing the REST service through code, I am getting "atg.rest.RestException: Access to the requested resource is not allowed".
    Can anyone please throw some light if I have missed anything here?
    Thanks in advance!

    Hi,
    I am facing an InvalidPersonaException , when I try to use the following in my restSecurityConfiguration.xml, any idea of the error? Still, I am able to login through admin credentials in BCC, and it is a valid Internal user.
    <resource component="/heb/store/service/RestContactUsManager">
    <method name="restContactUsStatus" secure="false">
    <acl value="Profile$login$admin:read,write,execute" />
    </method>
    </resource>

  • Making a REST webservice call. Error code: 401 Access to the requested resource is not allowed

    Hi All,
    I’m having a hard time figuring out how to make Rest WebService calls.
    I tried executing this directly through browser and I get an error.
    http:localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser?arg1=[email protected]&arg2=Password
    13:18:20,613 ERROR [RestSecurityServlet] Error code: 401
    Access to the requested resource is not allowed: /atg/userprofiling/ProfileServices
    atg.rest.RestException: Access to the requested resource is not allowed: /atg/userprofiling/ProfileServices
    at atg.rest.processor.RestSecurityProcessor.checkAccess(RestSecurityProcessor.java:546)
    at atg.rest.processor.RestSecurityProcessor.handleGetRequest(RestSecurityProcessor.java:313)
    at atg.rest.processor.RestSecurityProcessor.doRESTGet(RestSecurityProcessor.java:199)
    at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:417)
    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:260)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)
    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:264)
    at atg.rest.servlet.HeadRestServlet.service(HeadRestServlet.java:130)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:267)
    From the documentation I understand that I need to create a session, is the session only necessary to access secured components since this
    particular method “ProfileServices.loginUser “ has been declared as not secure in restSecurityConfiguration.xml
    Also, are there two different ways in which I can log in
    1.       Using RestSession.createSession providing the username and password.
    2.       Or using ProfileServices.loginUser or ProfileFormHandler
      Can someone please clarify

    If you are invoking the REST web-service from a Java client then you can create a RestSession object using the createSession method. But in your case you seem to be invoking it with a HTTP request which by default would be treated as a GET request by ATG's REST implementation. Therefore being a GET, it would try to fetch a property "loginUser" from /atg/userprofiling/ProfileServices component (based on your URL) which would always fail.
    To invoke loginUser() method of ProfileServices with your passed argument you need to tell ATG's REST system to treat your incoming request not as GET but as a POST request which you can do using  atg-rest-http-method control parameter in your request like this
    http:localhost:8080/rest/bean/atg/userprofiling/ProfileServices/loginUser?arg1=[email protected]&arg2=Password&atg-rest-http-method=POST
    It should work this way provided your restSecurityConfiguration.xml is proper.

  • 'This file type is not allowed...' error on uploading CX Archive file

    On uploading modified jar file to the exisiting CX archive path, it says 'This file type is not allowed. Please choose another file.'. This issue occurs only in the TEST environment while the error is not thrown in DEV. Any idea why this might be? Tried renaming it to .zip, but it did not help either. Thanks in advance.

    Here is the Response from our DBA. "I reviewed those docs (Notes 1432305.1 & 1357849.1 ) and these file format already included in Jan Security patches".
    Did your DBA follow the instructions in Note 1357849.1 to change the security structure to allow .jar files?
    It looks like we already have both January and April security Patches applied on the environment but we are still facing this issue. We are not facing this error in another Instance Where we don't have these security patches applied. Any direction?Please see Note: 1357849.1 and make sure the solution is implemented. If you still get the same issue, please log a SR.
    Thanks,
    Hussein

  • I have a new nikon D610. PS will not open the NEF files. it will not allow me to upgrade to ACR8.3R

    I have a new camera - nikon D610
    PS will not open the NEF files
    PS tells me I have the latest version
    ACR 8.3 will open the files but the system will not allow me to upgrade to ACR 8.3
    What do I do?

    anyone?

  • Write File.vi does not allow for offset entry

    I am using a Write File.vi to write data to my hard drive like always but I have never used the offset before and it is not allowing me to enter an offset value and the error message does not make sense. The error says you have wired different data types but then say source long, sink long which are the same in my eyes.
    Is there a trick to using the offset?

    If you are writing to file different data types, the use of input is not allowed because it depends on the number of bytes used to store the type (that's why it should be just one type)

  • Argh! Message bundle file names are not allowed to have dots???

    It took me several hours to find the reason for this exception:
    java.util.MissingResourceException: Can't find bundle for base name properties\com.domain.prj.huj.MainApp.Messages, locale de_DE
         at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)If the message bundle name contains dots (package separators), this exception is thrown! When I remove the dots, it works. But even the javadoc for ResourceBundle.getBundle() says that the baseName parameter is " the base name of the resource bundle, a fully qualified class name ".
    Is it not possible to have the message bundle file names containing dots (i.e. package declarations with class names)?

    Nope. Periods are used to delimit packages in the basename. So given:
    "com.domain.prj.huj.MainApp.Messages",
    ResourceBundle will look for "com/domain/prj/hui/MainApp/Message[_local][.class|.properties]" on the class path (ie, in jars etc).
    I've just had to implement an alternate RB factory to deal with legacy property files which contain periods. If you are starting from scratch, don't put in periods.

  • How do I delte a file that will not allow itself to be placed in Trash?

    I have a file on my iMac (running OS X 7.7.5) and I just noticed a file on the destop that looks like an Xcel file, however its name
    is "C6C1C450" with NO .XLXS tag on it. I cannot be moved from its location in the very uppermost right-hand corner of the screen,
    and I cannot drag it to the trash. If I attempt to do so I get a window that says"The item “C6C1C450” can’t be moved to the Trash
    because it can’t be deleted." I now suspect that it is not really an Xcel document at all. How do I get rid of it?

    I cannot explain how this file came to be on the desktop! I was straightening things up this morning and there it was. I forgot to mention that the file cannot be opened by double-clicking on it, nor can it be dropped into Xcel to open it. ( It doesn't even show up in the Xcel applications Open command window when I look at the "desktop" listing of items.)  That's why I feel that it is probably not really an Excel file.
    Jim C.

  • Delete files from computer - not allowed, file in use

    Using firefox to upload files online, being this a simple pdf document or a video file, prevents me from deleting the file from my hard drive, once the process is completed. Once I quit the web browser, deleting the file is possible. It looks like firefox is keeping the link to a file in constant use even after the website at which the file was used is no longer opened. Am I missing some something in firefox's properties settings?

    I've called the big guys to help you. Good luck.

  • Find Missing files command does not allow me to navigate to backup drive

    I have just bought a MacBook Pro and am moving my catalog an images from a PC.  I have read/watched many videos on how to do this.  I have copied all images out to a hard drive along with the Catalog file.  I downloaded Lightbook 4 to Macbook and have opened my catalog file.  All my tags and folder structure are shown with ?marks.  When I highlight the My Picture folder and click "find missing photos", I don't get a Navigate window to choose hard drive folder of the same name.  Instead, I see it start task, scan and complete task and all the photos now show in the Missing Photos section of the Catalog.  I never get a Navigate window.  It just keeps starting task and then saying complete. So the images are blank with ? marks on all files.
    Help!  I bought the Macbook Pro to do my photography and instead I've spend a day watching videos showing the Navigate window which I never get when I do "find missing photos".  What's going wrong?

    The answer here might help -
    http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-64bit-network-drive-displays-offline-and/4a50148b-3917-4ff5-bac2-493f63f3b95f

  • Why can't I open file that I saved 'save as'?  When I go to use the file, it does not allow me to use???

    I have Adobe X.

    Hi jgrubbs760,
    Do you get an error message when you try to open the file? Do other files open for you?
    Please provide a little more information about what's happening, and we'll try to get this sorted out.
    Best,
    Sara

  • Error reading wsdl file excepetion null

    Hi
    I am trying to invoke a proxy service (web service) wsdl from a bpel process. When i add a web service adapter, put url of external web service and save it, all my service end points defined in the BPEL process are becoming non editable. Binding of operation is changing from web service to HTTP binding for all end points. When I try to edit any partner link, Jdev throws an error " error reading wsdl file excepetion null " for local services. For external service, even though i am refering to a url on the server, it points to " C:\Oracle\Middleware\jdeveloper\jdev\bin\...\xxxx?WSDL" and throws same error " failed to read wsdl file(System could not find the path specified". I am just clueless as to why this is happening. Any help is much appreciated.

    Try the SOA Forum - SOA Suite

  • Error while reading wsdl file exception null

    Hi
    I am trying to invoke a proxy service (web service) wsdl from a bpel process. When i add a web service adapter, put url of external web service and save it, all my service end points defined in the BPEL process are becoming non editable. Binding of operation is changing from web service to HTTP binding for all end points. When I try to edit any partner link, Jdev throws an error " error reading wsdl file excepetion null " for local services. For external service, even though i am refering to a url on the server, it points to " C:\Oracle\Middleware\jdeveloper\jdev\bin\...\xxxx?WSDL" and throws same error " failed to read wsdl file(System could not find the path specified". I am just clueless as to why this is happening. Any help is much appreciated.
    I am using Jdev 111115 and SOA 11g.

    remove all the files from your temp folder
    restart your jdev this will resolve this issue.

  • Significance of binding tag in WSDL file

    Hi
    I have written a simple WebService based on JAX -WS , with the help of Sun one Application server i generated a wsdl file for that .
    By seeing the wsdl files i could not able to understand binding tag of my wsdl .
    Could anyone please let me know what is the signifucance of this tag ??
    The genrated one in my case is .
    <binding name="CalculatorPortBinding" type="tns:Calculator">
    </binding>Thank you .

    At a glance:
    Wsdl has two parts: abstract (PortType) and Concrete (bindings)
    The abstract part- tag <portType or tag (<interface since wsdl 2.0) is kind of interface i.e. describes available operations and their signature.
    Obviously to invoke the web-service - we have to know protocol and address .
    The wsdl concrete part desribes it.
    Since there number protocols and almost every protocol can have number parameters then
    wsdl concrete part consists of two parts:
    <binding - describes protocol and defnes necessary protocol parameters
    <service ...><port - defines concrete address and joins with binding (concrete protocol with parameters)
    The most detailed answer you can find by reading wsdl spec :)

  • Farm Remote App 2012 R : Your system administrator does not allow the use of default credentials to log on to Work Resources

    Hi
    Here is the situation:
    I have a Farm with 3 servers W2012R2 in a Domain
    Server1                           Server 2                                  
    Server3
    RDSession Host            RDSession Host                            
    RDSession Host
    Connection Broker        Connection Broker (Passive)
    RD Web Access
    2 DNS Alias : - poc.mydomain.local (Use for the RD Web Access and points to Server1
                        -poccb.mydomain.local (Use for the Connection Broker and points to Server1)
    I have setup the Connection broker in HA with Server2 as Passive Server : DNS Round Robin poccb.mydomain.local (Server1)
    The certificate Manager has generated 2 CA certificates :
    - 1 for the RD Web Acc (poc.mydomain.local
    -1 for Connection Broker SSO and for publishing
    I have created 1 Group Policy for these 3 servers and 1 GP for my client Windows 7 SP1.
    Server GPO :
    Computer/Administrative Templates/Windows Components/Remote Desktop Services/Remote Desktop Session Host/Security
    Always prompt for password upon connection=Disabled
    Require use of specific security layer for remote (RDP) connections : SSL (TLS 1.0)
    Set client connection encryption level : High Level
    Client GPO
    Computer/Administrative Templates/System/Credentials Delegation = Allow delegating default credentials (Concatenate OS defaults with input above)
    TERMSRV/POCCB.mydomain.local
    I use no Gateway and in my collection,I have activated SSL (Like in my Server GPO)
    I have now problem with SSO.
    Connection with remote desktop client with server name = poccb.mydomain.local
    Your system administrator does not allow you the use of default credentials to log on to the remote computer poccb.mydomain.local because its identity is not fully verified
    If in my client GPO I add the physical name of the 3 servers, it works :
    TERMSRV/Server1
    TERMSRV/Server2
    TERMSRV/Server3
    Open RDP Files with server name = poccb.mydomain.local
    if my connection broker connects me on Server1 , no problem
    But If I arrive on Server2 & Server 3=
    Your system administrator does not allow the use of default credentials to log on to Work Resources
    I have searched on internet. No result for " to log on to Work Resources"
    Any idea ? Thanks for your help

    Hi,
    Thank you for posting in Windows Server Forum.
    Firstly check that, your user is using domain\username to enter the credential in the dialog box.
    Now for a try, you can edit .rdp file with notepad and just place “enablecredsspsupport:i:0” line in it, save it an launch to check whether you are facing same issue.
    As you are using windows 7 then upgrade to RDP 8.1. Also as you have already enter the FQDN name of server under “Allow delegating default credentials”. For a try please enable and configure for all the remaining settings as follow and check the result.
    Start / Run / gpedit.msc / Computer Configuration / Administrative Templates / System / Credentials Delegation, and make sure you have the following four options enabled and configured:
    Allow Delegating Default Credentials with NTLM-only Server Authentication
    Allow Delegating Default Credentials
    Allow Delegating Saved Credentials
    Allow Delegating Saved Credentials with NTLM-only Server Authentication
    Finally, open a command prompt and use “gpupdate /force” command to apply the policy directly.
    More information:
    Remote desktop credentials did not work
    Hope it helps!
    Thanks.
    Dharmesh Solanki

Maybe you are looking for