Permissions.asmx web service problem

Hi all,
I have a big issue about web service action with Permissions.asmx. I have a custom created role and group on my site and i would like to grant this
group accces to list with permissions from this role. 
Unfortunately when I run  GetPermissionColection for another list where this group have acces based on this role (I have granted it manually) the returned Mask
(201527329) is wrong because when i try to AddPermissions with this mask, new Permission level is created (Auto-generated Permission Level f03cb0fa-4ba9-45d1-9aed-1e42004ce891). I have
no idea why? Maybe i do wrong calculation, or variable - Int32 is to short for permission mask? When I calculate it by hand, very big number appears which can't be stroed in int32.
Could you help me with that?
This is my custom role description (only checked fields are listed):
List Permissions
 - View Items, 
 - View Application Pages,
 - Open Items,
Site Permissions
 - Browse Directories,
 - View Pages,
 - Browse User Information,
 - Open.

Hi Viko31,
I can reproduce your issue, and get the same result.
The first time, my custom group Mask id is -1, it can be added to another list with expected permission level, when I delete the group, and add it again in the list, the Mask ID change to “201527329”, and the permission level change to auto-generate using
Permissions.AddPermission. the Mask id should be the issue of the method.
I saw a similar thread about this issue, indicate that many users met this issue:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e14dfed9-21c4-423d-872b-dc3c03ba8156/why-do-i-get-autogenerated-permission-level-bcf3888409744236a02eb7cf1497a2d2-instead-of-actual?forum=sharepointdevelopmentlegacy
As a workaround, I would suggest you custom web service to replace the getpermissioncollection add addpermission methods.
http://sprider.org/2012/11/14/674/
Thanks,
Qiao Wei
TechNet Community Support

Similar Messages

  • Asmx Web Service Random Timeout on SSL Handshake

    We have an asmx web service that is deployed on a server farm with two servers (both Virtual Machines with Windows 2008). The asmx web service, when invoked from a .net client application randomly returns this error: 
    "The underlying connection was closed: An unexpected error occurred on a receive."
    On a retry, the operation works fine. But the problem recurs after a few tries.
    When I tried to trap this message in Fiddler, this was the error:
    HTTP/1.1 200 Connection Established
    FiddlerGateway: Direct
    StartTime: 17:23:35.494
    Connection: close
    fiddler.network.https> HTTPS handshake to <removed the site name> failed. System.IO.IOException Unable to read data from the transport connection: An existing connection
    was forcibly closed by the remote host. < An existing connection was forcibly closed by the remote host.
    One thing that is noticeable is that all "random" errors occur only if when the client "tunnels" to site as per Fiddler. Sometimes the "tunnel" succeeds and sometimes it fails.
    This server farm is behind an F5 load balancer.
    I also have a replacement for this asmx web service which is a WCF service. That service is also deployed on the same server farm. This WCF service also gets the same random error though it does not seem to be that frequent. I have tried to trace the error
    message on the client and the server and nothing seems to work so far.
    I am working with a Microsoft support person and a network expert on this issue. 
    I am posting this question to the community to see if anybody else ran into a similar issue and if yes, what were their findings?
    Thanks in advance for your help.

    This issue turned out to the related to the virtual network interface card on one of the two servers that were part of the load balanced pool. Once we created a new NIC and reassigned the website IP addressed to it, the problem went away.
    I'd like to document what I learnt from the troubleshooting exercise. This is probably already documented on various forums but just thought I'll share this information.
    1. Troubleshooting Steps on the server:
    a. Make sure the URL of the WCF service shows up fine on a web browser on the client and the server. In many cases, the issue with the WCF service shows up in the browser window itself. 
    b. Take a look at SSL certificates and make sure those are installed correctly. Drop a test html file with hello world message in the web root folder of the server and see if your client browser can access it with SSL without any warnings or errors. Refresh
    the page multiple types to see if you get a random error.
    c. Enable WCF tracing on both the client and the server.
    https://msdn.microsoft.com/en-us/library/ms733025(v=vs.110).aspx
    d. If the traces do not provide any useful info, install Netmon on the client and the server and look at  Netmon traces.
    http://www.microsoft.com/en-us/download/details.aspx?id=4865
    Apparently, there is a newer tool called 'Microsoft Message Analyzer' (http://www.microsoft.com/en-us/download/details.aspx?id=44226) but I did not use this tool.
    e. Install Fiddler or Wireshark on the client and the server and monitor network traffic.
    2. We learnt from the Netmon traces that the load balancer was dropping packets randomly when connecting to one of the two servers. So we removed the server that was working fine from the load balanced pool and tested just with the 'erroring' server. We
    placed a test.html file on the web root of the server and continued our testing. We noticed that the random errors were evident also in non-SSL communication. So this eliminated the theory that the WCF service or the SSL certificates that anything to do with
    the random error. We noticed that the server would respond for a few minutes and then started dropping TCP packets. Once we added the virtual NIC, the problem went away.
    3. Our third option would be to remove the load balancer from the picture but that was not needed once we figured out the issue in step 2.
    Hope this information helps someone else who is facing or will face a similar problem.

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • Can't re-add printer after removing from eprint center - 'Web Services Problem'

    I have an HP Photosmart Premium C310 series printer (Model Number CN503B) which I have been using with ePrint for about 18 months. Aside from intermittent issues it has worked, I use a chromebook most of the time so rely on the ePrint option via Google Cloud Print.
    Last week it stopped working, with every job in the list showing as cancelled. Following advice on the forum I removed the email address of the printer from the eprint center. I thought it would then be simple to add the printer back. However, I have been unable to connect the printer to the web service so I cannot create the code I need to add the printer back.
    STEPS TO REPRODUCE:
    1. Factory reset printer settings
    2. Factory reset network settings
    3. Restart printer and Reboot router
    3. Settings -> Network -> Wireless Setup Wizard
    4. Choose correct SSID, enter password for WPA
    5. ‘Connected to Network’
    6. Settings -> Web -> Enable Web Services
    7. ‘Accept terms’ screen -> Accept
    8. ‘Checking for product updates’ screen shows briefly then returns to 'accept terms' screen
    9. Next it makes a ping sound and shows ‘Web Services Problem’ ‘Problem connecting to Web Services Server’, it then pings again a few seconds later (which ties in with what I see in the network logs as a second attempt)
    10. Log on to printer via web interface and set IP address of printer to manual IP outside DHCP range (as advice on other threads in this forum). Check DNS setting valid (same as gateway server which all other devices on network are also using successfully as DNS)
    11. Repeat steps 6 and 7 - still same error message
    I consider myself technically savvy and have followed all advice I can find on this forum including the following:
    1. reverting to printer and network defaults
    2. rebooting router
    3. assigning static IP address to printer outside of DHCP range of router
    4. connecting to printer via web interface and setting DNS to variously: same as gateway, google DNS (8.8.8.8), ISP DNS
    5. adjusting firewall settings on router to explicitly allow and log outbound connection on the HP ports (already had a rule allowing all outbound connections)
    As mentioned, the printer worked fine with ePrint previously so I suspect the ePrint server is rejecting a request from my printer for some reason, maybe because there is old / corrupt  data on the server regarding my specific printer.
    I’m logging outbound traffic from the printer and here are what the router logs show me (printer IP replaced with 192.168.x.x below, even though it is not public )
    Thu, 2013-04-11 09:13:42 - TCP Packet - Source:192.168.x.x, 36475 Destination:15.201.202.81,80 - [HTTP rule match]
    Thu, 2013-04-11 09:13:43 - TCP Packet - Source:192.168.x.x, 51463 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:44 - TCP Packet - Source:192.168.x.x, 53044 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:44 - TCP Packet - Source:192.168.x.x, 51463 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:44 - TCP Packet - Source:192.168.x.x, 53044 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:51 - TCP Packet - Source:192.168.x.x, 64270 Destination:15.201.224.79,443 - [HTTPS rule match]
    Looks like both are HP sites: first is 'g4t2674.houston.hp.com' and the second secure one is ‘registration-pro-site2eprint.houston.hp.com’ which sound likely to be correct. That suggests the DNS is working but that the registration server doesn’t like the request for some reason.
    I had the printer registered for Google Cloud Print but I have now deleted that also and it doesn’t seem to have made any difference (assume it just formats and forwards to the HP ePrint email anyway).
    One hack that sheds some further light is to switch off wifi on the printer and then switch on ePrint. Eprint gives an error but stays set as 'on'. When I then switch wifi back on I can then at least check for product updates (it tells me I have the latest product updates). However, web services are still a 'no go'. Network traffic for that product update exchange looks like this:
    Thu, 2013-04-11 10:14:51 - TCP Packet - Source:192.168.x.x,63960 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,63960 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,63960 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x ,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    So clearly the printer can communicate to those servers well enough to find it has the latest firmware. 
    I realise this is a lot of information but hopefully some of it is helpful for troubleshooting.
    Thank you in advance for any help!

    The issue disappeared this weekend. I didn't change anything so it must have been something server side. I notice others with the same issue have also seen it resolved.
    Thanks to all those who contributed and tried to help out. Although disappointed I went for a long time without ePrint I'm glad that action was apparently taken to resolve in the end.

  • Calling .asmx Web Service from Java Client

    hi
    I have created one java client in WSAD 5.1 to invoke .asmx web service. I have used the following code for it.
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.NamespaceConstants;
    import javax.xml.rpc.ParameterMode;
    import java.net.URL;
    public class JavaWS3
         public static void main(String [] args)
              try
                   // Responds the same with or without the ?WSDL
                   String     strEndPoint          = "http://www.meizlik.com/Service.asmx";
                   String     strSoapAction     = "http://www.meizlik.com/BigAdd";
                   String     strSchemaURL     = "http://www.w3.org/2001/XMLSchema";
                   String     strParamName1     = "addend_1";
                   String     strParamName2     = "addend_2";
                   String     strParameterVal1= "10";
                   String     strParameterVal2= "7";
                   String     strFunctionName     = "BigAdd";
                   //Call     call   = (Call) new Service().createCall();//Works
                   //Call     call   = new Call(strSoapAction);//Works same
                   //Call     call   = new Call(strEndPoint);//Works same
                   Service  service = new Service();
                    Call call= (Call) service.createCall();
                   call.setEncodingStyle(NamespaceConstants.NSURI_SOAP_ENCODING);
                   call.setTargetEndpointAddress(new URL(strEndPoint));
                   // first parameter in QName seemingly takes ANYTHING
                   call.setOperationName(new QName("http://www.meizlik.com", strFunctionName));
                   // Set the name of the parameter and the return type
                   call.setReturnType(XMLType.XSD_STRING);
                   call.addParameter(new QName("http://www.meizlik.com",strParamName1), XMLType.XSD_STRING, ParameterMode.IN);
                   call.addParameter(new QName("http://www.meizlik.com",strParamName2), XMLType.XSD_STRING, ParameterMode.IN);
                   // Catch the result and print it
                   // Parameter count is now ONE (1).
                   // call.setUseSOAPAction(true);//Not Necessary
                   call.setSOAPActionURI(strSoapAction);//Yes Necessary
                   String     strResult = (String) call.invoke(
                        new Object[] {
                             new String(strParameterVal1),
                             new String(strParameterVal2)
                   System.out.println("Result='" + strResult + "'");
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println(e.toString());
    }this code is giving me the exception as :
    java.net.ConnectException: Operation timed out: connect due to invalid addressI visited web service URL http://www.meizlik.com/Service.asmx and its working fine.
    I also tried Java Proxy method in WSAD 5.1 but it is showing me the same error.
    Where am I wrong? Can anyone plz give me solution 4 this.
    Thanks..

    Hi,
    I have even generated folowing code with SoaMoa, it is perfect. Please try SoaMoa it is a useful tool.
    The generated code of SoaMoa :
    /* Generated Testcase by SoaMoa, :ridvan at Thu Jun 04 21:53:14 CEST 2009 */
    import java.util.Map;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPConstants;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.ws.Dispatch;
    import javax.xml.ws.Service;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.soap.SOAPBinding;
    import java.util.Iterator;
    import junit.framework.TestCase;
    public class BigAddTest extends TestCase {
    public void testBigAdd() throws Exception {
    String endpointURL = "http://www.meizlik.com/Service.asmx";
    QName serviceName = new QName("http://www.meizlik.com", "Bob_Services");
    QName portName = new QName("http://www.meizlik.com", "Bob_ServicesHttpPost");
    Service service = Service.create(serviceName);
    service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointURL);
    Dispatch<SOAPMessage> dispatch = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
    BindingProvider bindingProvider = (BindingProvider) dispatch;
    // Optionally Configure RequestContext to send SOAPAction HTTP
    Map<String, Object> rc = bindingProvider.getRequestContext();
    rc.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    rc.put(BindingProvider.SOAPACTION_URI_PROPERTY, "http://www.meizlik.com/BigAdd");
    MessageFactory messagefactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
    SOAPMessage request = messagefactory.createMessage();
    SOAPPart part = request.getSOAPPart();
    SOAPEnvelope env = part.getEnvelope();
    SOAPBody body = env.getBody();
    body.addNamespaceDeclaration("www", "http://www.meizlik.com");
    SOAPElement BigAdd = body.addChildElement("BigAdd", "www");
    SOAPElement addend_1 = BigAdd.addChildElement("addend_1", "www");
    addend_1.addTextNode("11");
    SOAPElement addend_2 = BigAdd.addChildElement("addend_2", "www");
    addend_2.addTextNode("11");
    request.saveChanges();
    SOAPMessage response = dispatch.invoke(request);
    SOAPBody replyBody = response.getSOAPBody();
    SOAPElement BigAddResponse = (SOAPElement) replyBody.getChildElements(new QName("http://www.meizlik.com", "BigAddResponse")).next();
    assertNotNull( "BigAddResponse is null", BigAddResponse);
    SOAPElement BigAddResult = (SOAPElement) BigAddResponse.getChildElements(new QName("http://www.meizlik.com", "BigAddResult")).next();
    assertNotNull( "BigAddResult is null", BigAddResult);
    assertEquals("BigAddResult", "0000000000000000000000000022", BigAddResult.getTextContent());
    }

  • Getting Error in Asmx Web Service Unit Testing & not able to debug unit-test Project.

    I am getting below error message while running unit test for ASMX web service
    Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a time can run
    tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    I checked in web.config. Below line already added in web.config. i removed below line to run test again but getting same error message.
    <httpModules>
    <add name="HostAdapter" type="Microsoft.VisualStudio.TestTools.HostAdapter.Web.HttpModule, Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </httpModules>
    i am not able to debug unit test project.
    Please "Mark as Answer" if this post answered your question. :)
    Kalpesh Chhatrala | Software Developer | Rajkot | India
    Kalpesh 's Blog
    VFP Form to C#, Vb.Net Conversion Utility

    Hi Kalpesh,
    >>Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a
    time can run tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    In your web application root, can you find a file named 'web.config.backup'?
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/e2ad0c20-df90-48dc-818c-8c5ec24d9365/visual-studio-test-is-not-hitting-breakpoints-in-debug?forum=vststest
    Fang also shared more information about debugging the unit test for web project here:
    https://social.msdn.microsoft.com/Forums/en-US/daa16086-b1b8-4917-ad8d-65e23b49e1bc/not-able-to-read-webconfig-through-unit-test-feature-by-visual-studiovsts?forum=vststest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ASMX web service and The remote server returned an error: (500) Internal Server Error issue

    i have developed a very small web service and which is hosted along with our web site. our webservice url is
    http://www.bba-reman.com/Search/SearchDataIndex.asmx
    web service code
    namespace WebSearchIndex
    #region SearchDataIndex
    /// <summary>
    /// SearchDataIndex is web service which will call function exist in another library for part data indexing
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    // [System.Web.Script.Services.ScriptService]
    public class SearchDataIndex : System.Web.Services.WebService
    //public AuthHeader ServiceAuth=null;
    public class AuthHeader : SoapHeader
    public string Username;
    public string Password;
    #region StartIndex
    /// <summary>
    /// this function will invoke CreateIndex function of SiteSearch module to reindex the data
    /// </summary>
    [WebMethod]
    public string StartIndex(AuthHeader auth)
    string strRetVal = "";
    if (auth.Username == "Admin" && auth.Password == "Admin")
    strRetVal = SiteSearch.CreateIndex(false);
    else
    SoapException se = new SoapException("Failed : Invalid credentials",
    SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
    throw se;
    return strRetVal;
    #endregion
    #endregion
    when i was calling that web service from my win apps using
    HttpWebRequest
    class then getting error The remote server returned an error: (500) Internal Server Error
    here is code of my win apps from where i am calling web service
    string strXml = "";
    strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
    string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
    HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
    req.Method = "POST";
    req.ContentType = "text/xml";
    req.KeepAlive = false;
    req.ContentLength = strXml.Length;
    StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
    streamOut.Write(strXml);
    streamOut.Close();
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    string strResponse = streamIn.ReadToEnd();
    streamIn.Close();
    i am just not being able to understand when this line execute
    StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
    then getting the error The remote server returned an error: (500) Internal Server Error
    not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
    help me to fix this issue. thanks

    Hi Mou,
    I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
    The error message I quoted from Fiddler:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---&gt; System.Exception: Invalid credentials
    --- End of inner exception stack trace ---
    at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
    I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
    1.right click the Reference and select Add Service Reference
    2.input your service link and click "Go"
    And you can use this service as the following:
    private async void callService()
    ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
    var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SharePoint lists.asmx web service error in InfoPath and SOAPUI

    We have a SharePoint 2013 farm with web applications using Claims Authentication. I'm trying to create an InfoPath 2013 form where I want to add lists.asmx (https://servername/_vti_bin/lists.asmx) web service to receive/submit data, but I'm getting below
    error, even if I use the farm account when it prompts for credentials. SharePoint logs look clean, IIS logs have some 401 errors. 
    "The file is not a valid XML file. Not enough storage is available to process this command"
    When I add the web service in SOAPUI using the farm account, it works fine. It only throws below error when I use my user account, which is a farm admin and also added to web application's User Policy. IIS logs have 401 error.
    "Error loading [https://servername/_vti_bin/lists.asmx?wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null"
    Does anyone know how to troubleshoot this issue?
    Thank you,

    Hi rdoe,
    Do you have any update for this issue?
    Whether you checked as Dats said.
    In addition, if you have found a solution for this issue, please share it, it will be beneficial to others in this forum who meet the same issue in the future.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Urgent web service problem. can not find url of WSDL

    Hi all,
    I met a web service problem recently.
    1 I have set up a web service and reside it on Java System Application server9.0. But there's a bug of this web server, which will stop after the user log off the server. I have installed the Application server as a windows service. It suppose to run all the time. I don't know why the server stop after I log off.
    2 For that reason, I tried to migrant my web service from the java application server to Tomcat5.5. I deployed my web service to folder webApps. But I don't know the WSDL url of the web service, which is the web reference for my frent-end c#.net application.
    Anybody can give me some idea?
    Many thanks

    Nobody knows?
    Please help me

  • Asmx web service not calling using schedular

    I have created a asmx web service and using visual studio i deployed the web service on azure cloud service.When i open the service by url like http://xyz.cloudapp.net/service1.asmx?op=CreateSite it opened.But when i provide the same url to Azure scheduler
    the scheduler get executed but the service is not working.
    I am new in azure so can you please tell me in brief how can i configure Azure scheduler to execute my hosted web service.
    Thanks

    hi,
    Because your request method is 'get', so your history shown that the page (http://xyz.cloudapp.net/service1.asmx?op=CreateSite  ) content as your open the link on browser. you could add
    the script on your webservice code, like this:
    [WebMethod]
    [ScriptMethod(UseHttpGet = true)]
    public string Test()
    You could call the Uri as
    http://xyz.cloudapp.net/service1.asmx/CreateSite. Please see how to use get method on web service (http://stackoverflow.com/questions/618900/enable-asp-net-asmx-web-service-for-http-post-get-requests
    Hope this helps.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ASMX web service in HIS 2013

    Hello
    I have another set of TI objects that I have converted to run in HIS 2013 as we have upgraded from HIS 2006 to HIS 2013. I have written a stand-alone test client application that consumes these TI objects successfully
    and everything works fine. 
    The issue is that our ASMX web service that consumes these TI objects no longer works. We have re-compiled the ASMX web service in .NET framework 4.5 and made the relevant changes using the new ClientContext() class as required and the web service compiled
    successfully, however when we run a test client against this service we see the following error in the event logs "Internal message routing error:
    process id 2604, mhtype 1, msgtype 19  EXPLANATION This is an internal error in Host Integration Server.".
    We turned on HIS tracing and can see the last entry is "HISTSNA0013 The SNATransport is calling CMALLC." and then it stops.
    Any ideas why this is occuring and should our ASMX web service be able to consume the HIS 2013 TI objects?
    Thanks
    Sean

    Hi Sean,
    Have you correctly configured the SNA Connection ? Can you please open the SNA Manager and running the Diagnostics to see if the SNA Sessions are correctly established.
    In addition have you added the new config settings for HIS 2013 (web.config) in order to use the correct settings (like Remote Environment) ? 
    Best Regards,
    Steve Melan - BCEE My Blog : http://stevemelan.wordpress.com

  • J2ME invoking web service problem

    Hello. I'm trying to create an application which invokes an ASP 2.0 WebService. For the J2ME, i'm using NetBeans with the SE Developer SDK. The code is not so complicated:
    service.ServiceSoap_Stub srv = new service.ServiceSoap_Stub();
    srv._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://localhost/WebServiceTest/Service.asmx");
    srv._setProperty(Stub.SESSION_MAINTAIN_PROPERTY, Boolean.FALSE);
    String text = srv.remoteMethod();
    The problem is: when i run the application with the Default NetBeans Color Phone, everything is fine; it works. Now, when i try to load it with the SE Developer Emulators, the problem appears.
    When using SE K750 Emulator, if i'm not using threads, when i' trying to invoke the web service i get the following error: java.lang.NoClassDefFoundError: service/ServiceSoap_Stub: service/ServiceSoap. If i'm using threads, the emulator crashed when started with a Windows error (zayit.exe has encountered a problem and needs to close. We are sorry for the inconvenience.)
    Both applications run ok when i'm using the Default Color Phone from NetBeans and this problem occurs with every phone from the SE SDK.
    Is J2ME platform installed on SE phones modified or it's the same runtime environment on all phones? Why does this problem appears? Thanks in advance.

    Hello. I'm trying to create an application which invokes an ASP 2.0 WebService. For the J2ME, i'm using NetBeans with the SE Developer SDK. The code is not so complicated:
    service.ServiceSoap_Stub srv = new service.ServiceSoap_Stub();
    srv._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://localhost/WebServiceTest/Service.asmx");
    srv._setProperty(Stub.SESSION_MAINTAIN_PROPERTY, Boolean.FALSE);
    String text = srv.remoteMethod();
    The problem is: when i run the application with the Default NetBeans Color Phone, everything is fine; it works. Now, when i try to load it with the SE Developer Emulators, the problem appears.
    When using SE K750 Emulator, if i'm not using threads, when i' trying to invoke the web service i get the following error: java.lang.NoClassDefFoundError: service/ServiceSoap_Stub: service/ServiceSoap. If i'm using threads, the emulator crashed when started with a Windows error (zayit.exe has encountered a problem and needs to close. We are sorry for the inconvenience.)
    Both applications run ok when i'm using the Default Color Phone from NetBeans and this problem occurs with every phone from the SE SDK.
    Is J2ME platform installed on SE phones modified or it's the same runtime environment on all phones? Why does this problem appears? Thanks in advance.

  • PL/SQL Web Service problem in Oracle10g

    Hi everybody
    I try to publish PL/SQL Web Service using JDeveloper 9.0.4.0 and Oracle10g.
    But when I deploy the Web Service using 'http-web-site', error messages are:
    oracle.oc4j.admin.internal.DeployerException: Unknown site: http-web-site
    Active sites are:
    file:/D:/oracle/DS/j2ee/home/config/default-web-site.xml
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:131)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.bindWebApp(DefaultApplicationServerAdministrator.java:364)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Exit status of OC4J admin tool (-bindWebApp): 17
    Use the following context root(s) to test your web application(s):
    http://huan:????/CSE5200-PLSQLWS-context-root
    Note: JDeveloper was unable to determine the HTTP port number of the remote server for the above URL(s).
    Elapsed time for deployment: 2 minutes, 19 seconds
    When I change it to 'default-web-set', the following information is shown:
    ---- Deployment started. ---- 2004-8-31 8:50:08
    Target platform is Standalone OC4J (WSConnection).
    Wrote WAR file to D:\oracle\DS\jdev\mywork\CSE5200\PLSQLWS\WebServices.war
    Wrote EAR file to D:\oracle\DS\jdev\mywork\CSE5200\PLSQLWS\CSE5200-PLSQLWS-WS.ear
    Invoking OC4J admin tool...
    D:\oracle\DS\jdk\jre\bin\javaw.exe -jar D:\oracle\DS\j2ee\home\admin.jar ormi://huan/ admin **** -deploy -file D:\oracle\DS\jdev\mywork\CSE5200\PLSQLWS\CSE5200-PLSQLWS-WS.ear -deploymentName CSE5200-PLSQLWS-WS
    Notification ==> Application Deployer for CSE5200-PLSQLWS-WS STARTS [ 2004-08-31T08:50:32.487EST ]
    Notification ==> Undeploy previous deployment
    Notification ==> Copy the archive to D:\oracle\DS\j2ee\home\applications\CSE5200-PLSQLWS-WS.ear
    Notification ==> Unpack CSE5200-PLSQLWS-WS.ear begins...
    Notification ==> Unpack CSE5200-PLSQLWS-WS.ear ends...
    Notification ==> Initialize CSE5200-PLSQLWS-WS.ear begins...
    Notification ==> Initialize CSE5200-PLSQLWS-WS.ear ends...
    Notification ==> Initialize WebServices begins...
    Notification ==> Initialize WebServices ends...
    Notification ==> Application Deployer for CSE5200-PLSQLWS-WS COMPLETES [ 2004-08-31T08:50:45.766EST ]
    Exit status of OC4J admin tool (-deploy): 0
    D:\oracle\DS\jdk\jre\bin\javaw.exe -jar D:\oracle\DS\j2ee\home\admin.jar ormi://huan/ admin **** -bindWebApp CSE5200-PLSQLWS-WS WebServices default-web-site /CSE5200-PLSQLWS-context-root
    Exit status of OC4J admin tool (-bindWebApp): 0
    Use the following context root(s) to test your web application(s):
    http://huan:8890/CSE5200-PLSQLWS-context-root
    Elapsed time for deployment: 53 seconds
    ---- Deployment finished. ---- 2004-8-31 8:51:01
    And the Web Service still can not work. I did this before with JDeveloper 9.0.3 with Oracle9i and succeeded. Could anybody tell me how to resolve this problem. Thanks a lot.

    Thanks Frank.
    In my function package i create xml use dbms_xmldom. I save created xml into clob and return this clob in function.
    Now I want create web service that return my clob(xml).
    I try use JDevelper with PL/SQL Web Service Wizard.
    But I get wrong result (see in my first post).
    My Example xml in clob
    <test>"testvalue"</test>
    I want get responce
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    X-Powered-By: Servlet/2.5 JSP/2.1
    SOAPAction: "http://localhost/MyWebService1.wsdl/udoFDicnomnsXmlWs"
    Date: Thu, 28 Oct 2010 08:23:31 GMT
    X-ORACLE-DMS-ECID: 0000IjlvoFZB_6yb05nZ6F1CmJAZ000006
    Content-Length: 279812
    X-HTTPAnalyzer-RuleName: Pass through :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <env:Header/>
    <env:Body>
    <m:udoFDicnomnsXmlWsResponse xmlns:m="http://localhost/MyWebService1.wsdl">
    <result><test>"testvalue"</test>
    </result>
    </m:udoFDicnomnsXmlWsResponse>
    </env:Body>
    </env:Envelope>
    But I get
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    X-Powered-By: Servlet/2.5 JSP/2.1
    SOAPAction: "http://localhost/MyWebService1.wsdl/udoFDicnomnsXmlWs"
    Date: Thu, 28 Oct 2010 08:23:31 GMT
    X-ORACLE-DMS-ECID: 0000IjlvoFZB_6yb05nZ6F1CmJAZ000006
    Content-Length: 279812
    X-HTTPAnalyzer-RuleName: Pass through :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <env:Header/>
    <env:Body>
    <m:udoFDicnomnsXmlWsResponse xmlns:m="http://localhost/MyWebService1.wsdl">
    <result>& lt;test>&amp;quot;testvalue&amp;quot;& lt;/test>
    </result>
    </m:udoFDicnomnsXmlWsResponse>
    </env:Body>
    </env:Envelope>
    Can you advice something?
    Edited by: user10707438 on 28.10.2010 1:14
    Edited by: user10707438 on 28.10.2010 1:27

  • Dsp web service problem

    Hi, sorry to keep abusing this forum but I'm trying to get something going REALLY quickly and have no alternative at the moment... we're working on that.
    So I managed to solve or work around my previous problems and am now trying to expose one of our data services via a web service. The logical data servie represents the gjxdm personType and offers a "getPeople" query.
    I followed documentation at these places:
    http://edocs.bea.com/aldsp/docs21/appdev/wsdlclt.html#wp1056096
    http://e-docs.bea.com/wls/docs81/webserv/client.html#1069115
    to generate a web service by creating a control, creating a web servcie from the control, and generating the wsdl file from the .jws.
    Then I used an ant script to run the sdo task and clientgen to create the necessary jar files for a client to invoke the web service. Using these jar files I wrote a simple client to call "getPeople".
    When I call getPeople I run into an exception:
    java.rmi.RemoteException: Element of dateTime is not in valid range: Day has invalid length.; nested exception is:
         java.lang.IllegalArgumentException: Element of dateTime is not in valid range: Day has invalid length.
         at com.raytheon.hiec.bsi.JxdmPersonControlTestSoap_Stub.getPeople(JxdmPersonControlTestSoap_Stub.java:33)
         at com.raytheon.hiec.bsi.JxdmPersonControlTestSoap_Stub.getPeople(JxdmPersonControlTestSoap_Stub.java:46)
         at com.raytheon.test.Test.main(Test.java:25)
    Caused by: java.lang.IllegalArgumentException: Element of dateTime is not in valid range: Day has invalid length.
         at weblogic.xml.schema.types.util.XSDDateTimeDeserializer.getCalendar(XSDDateTimeDeserializer.java:35)
         at weblogic.xml.schema.types.XSDDate.convertXml(XSDDate.java:164)
         at weblogic.xml.schema.binding.internal.builtin.XSDDateDeserializer.getObjectFromContent(XSDDateDeserializer.java:16)
         at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.processContent(XSDSimpleTypeDeserializer.java:173)
         at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.processContent(XSDSimpleTypeDeserializer.java:161)
         at weblogic.xml.schema.binding.BeanCodecSimpleContentBase.processElements(BeanCodecSimpleContentBase.java:60)
         at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:109)
         at weblogic.xml.schema.binding.SequenceCodecBase.deserialize_incomplete(SequenceCodecBase.java:153)
         at weblogic.xml.schema.binding.SequenceCodecBase.deserialize(SequenceCodecBase.java:87)
         at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:184)
         at weblogic.xml.schema.binding.BeanCodecBase.processAllElements(BeanCodecBase.java:166)
         at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:146)
         at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:109)
         at weblogic.xml.schema.binding.SequenceCodecBase.deserialize(SequenceCodecBase.java:106)
         at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:184)
         at weblogic.xml.schema.binding.BeanCodecBase.processAllElements(BeanCodecBase.java:166)
         at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:146)
         at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:109)
         at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:428)
         at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:328)
         at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:384)
         at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:484)
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:325)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:303)
         at com.raytheon.hiec.bsi.JxdmPersonControlTestSoap_Stub.getPeople(JxdmPersonControlTestSoap_Stub.java:26)
         ... 2 more
    After searching on these forums I found this:
    http://forums.bea.com/bea/thread.jspa?forumID=2055&threadID=600009725&messageID=600020945#600020945
    which appears to be te same problem as I am having. I also found other threads (although much much older from like 2002) describing the same problem... one person described it as a bug in the jaxrpc implementation.
    Workarounds involved making sure you used Calender in the interfaces instead of Date... however, since everything I'm using is generated by workshop I don't really have any control over the types.
    Has anyone run into this (I'm sure someone must have). Any help woudl be greatly appreciated.

    I just checked with customer support,
    they said our maintenance support just expired.
    They said I could not open a customer case.
    Could anyone out there open a customer case
    to handle this long existed problem.
    Thanks

  • Web Service Problem! URLs are basically broken.

    We recently updated our SQL Server 2012 SSRS implimentation from 11.0.3339 (SP1 CU2) to 11.0.3381 (SP1 CU6).   We are on Server 2008 R2 SP1.  I am pretty certain that this is related to the Cumulative update since I have 6 seperate
    and entire clusters doing the same exact thing but I can't find a fix on CU7. 
    Two symptoms started popping up pointing to a problem with the SSRS Web service.
    Symptom 1
    1. Before the change, our emailed SSRS subscriptions were sent out with a valid link, now they error out.
    Reporting Services Error
    An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-96-130358835578081507. Most likely, the HTTP request contains an unsupported verb or invalid syntax. (rsHttpRuntimeError) Get Online Help
    Unable to validate data.
    SQL Server Reporting Services
    2. Before the change you could drill down our SSRS URL through the web service. 
    http://servername/reportserver/folder/report and then when you click on a report name, it would display the report, like you'd expect for the web service.  Now you get this error:
    Reporting Services Error
    An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-27-130358853340658138. Most likely, the HTTP request contains an unsupported verb or invalid syntax. (rsHttpRuntimeError) Get Online Help
    Unable to validate data.
    SQL Server Reporting Services
    Can anyone else reproduce it or better yet do you know of a fix?
    Thanks,
    Keith

    Hi Keith,
    The issue may be due to Federal Information Processing Standard (FIPS) was enabled on SSRS server. Please refer to the following steps to fix the issue:
    Use Notepad to open the web.config file of Report Server and Report Manager. In SSRS 2012, the default location is: C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer
    (Note: Please backup the file before modify it.)
    Add the following <machineKey> section in the <system.web> section:
    <machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/>
    Reference: http://support.microsoft.com/kb/911722/en-us
    Hope this helps.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • How how to escape double quation in execute immediate in trigger

    Hi all, please inform me what is the mistake in this procedure. i think the problem in how to escape double quation. SQL> create or replace procedure P2 2 is 3 begin 4 execute immediate ' create or replace trigger t2 ' 5 ||' before insert ' 6 ||' on

  • Yellow warning messages while Using cells in a query

    I created a query that uses cells and in each one there is a calculation.  In my rows i have a structure that contains just titles, like Plan, actual, etc.  I keep getting yellow warnings saying they are not defined.  It lets me run the query and the

  • How to disable any record in a Tabular Data Block

    Hi, I have a tabular data block having 10 records, every record has a check box(1 check box on each row). I want to disable all items in that particular record where user checks the check box(check box is UNCHECKED by default). Is this possible in WH

  • Microsoft Office 2007 Error

    At the time of open MS office Excel file it shown error message-the workbook can not opened or repaired by Microsoft Excel because it is corrupt.

  • Variant Configuration Materials Costing Scenario

    Hi All, Any one explain me Variant Configuration Materials Costing Scenario in descrete manufacturing? any help is appreciated. Thanks, Anusha