ANONYMOUS LOGON Web Server to WCF Web Service(Different Server)
Hi,
I have facing login credentials lost web server to wcf web service(different server). I got correct data if i open my web site from Web Server but i got "403 forbidden" if i call from client pc or other server.
I used domain account to run the web application for my own web site. Is it something wrong on my configuration at each server. I have no idea to how to make it to correct. I don't find correct answer on Google or bing.
Here
is server information and SPN List. Please let me know if want to know more details.
1. Domain Server
2. CRM Server (Web Site is host on this server)
- Enable Kernel Mode
- Windows authentication (1st - Negotiate, 2nd - Ntlm)
- Impersonate
- Application Pool (domain\account)
3. ERP Server (WCF Web Services is host on this server - support kerberos + ntlm).
- domain\account to run services.
- constrained delegation to sql server
4. SQL Server
Here is SPN on each Server and Service Account
SQL Server SPN List
MSSQLSvc/WS08R2SP1-SQL.domain.local:1433
MSSQLSvc/WS08R2SP1-SQL.domain.local
WSMAN/WS08R2SP1-SQL
WSMAN/WS08R2SP1-SQL.domain.local
RestrictedKrbHost/WS08R2SP1-SQL
RestrictedKrbHost/WS08R2SP1-SQL.domain.local
HOST/WS08R2SP1-SQL
HOST/WS08R2SP1-SQL.domain.local
CRM Server SPN List
TERMSRV/WS08R2SP1-CRM
TERMSRV/WS08R2SP1-CRM.domain.local
WSMAN/WS08R2SP1-CRM
WSMAN/WS08R2SP1-CRM.domain.local
RestrictedKrbHost/WS08R2SP1-CRM
RestrictedKrbHost/WS08R2SP1-CRM.domain.local
HOST/WS08R2SP1-CRM
HOST/WS08R2SP1-CRM.domain.local
ERP Server SPN List
TERMSRV/WS08R2SP1-ERP
TERMSRV/WS08R2SP1-ERP.domain.local
WSMAN/WS08R2SP1-ERP
WSMAN/WS08R2SP1-ERP.domain.local
RestrictedKrbHost/WS08R2SP1-ERP
RestrictedKrbHost/WS08R2SP1-ERP.domain.local
HOST/WS08R2SP1-ERP
HOST/WS08R2SP1-ERP.domain.local
Domain\NavSvrAdmin (Running Navision Web Service Account) SPN List
HTTP/WS08R2SP1-ERP.domain.local
HTTP/WS08R2SP1-ERP
NAV61-SG_Demo/WS08R2SP1-ERP.domain.local:7046
NAV61-SG_Demo/WS08R2SP1-ERP:7046
Here is login fail list on Web Server (CRM Server) using
WinShark.
Here is LogIn information on ERP Server. I got this log if i access my web site from client pc.
ERP Server
An account was successfully logged on.
Subject:
Security ID: NULL SID
Account Name: -
Account Domain: -
Logon ID: 0x0
Logon Type: 3
New Logon:
Security ID: ANONYMOUS LOGON
Account Name: ANONYMOUS LOGON
Account Domain: NT AUTHORITY
Logon ID: 0x45e781
Logon GUID: {00000000-0000-0000-0000-000000000000}
Process Information:
Process ID: 0x0
Process Name: -
Network Information:
Workstation Name: WS08R2SP1-CRM
Source Network Address: -
Source Port: -
Detailed Authentication Information:
Logon Process: NtLmSsp
Authentication Package: NTLM
Transited Services: -
Package Name (NTLM only): NTLM V1
Key Length: 128
This event is generated when a logon session is created. It is generated on the computer that was accessed.
The subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
The logon type field indicates the kind of logon that occurred. The most common types are 2 (interactive) and 3 (network).
The New Logon fields indicate the account for whom the new logon was created, i.e. the account that was logged on.
The network fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The authentication information fields provide detailed information about this specific logon request.
- Logon GUID is a unique identifier that can be used to correlate this event with a KDC event.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
SQL Server Properties
Link 1 Link 2
ERP Server Properties
Link
CRM Server Properties
Link
Please ignore my mistake if i post wrong place.
Best Regards,
Make Simple & Easy
Legacy Web services and WCF services are discussed in the Services secition in the ASP.NET forum.
http://forums.asp.net/
Similar Messages
-
Good day everyone,
I have a question in regard to real server operation with different server farms, and VIPs
Can a Real Server be associated ( for simpliciy) with two different Server Farms that have a VIP associated with each, servicing the same TCP Port (443).
Example:
SF-A
RSRV-1: 192.168.1.10 /24
RSRV-2: 192.168.1.11 /24
VIP-A: 192.168.1.20 /24
VIP-A: https:web-A
Protocol: HTTPS
SF-B
RSRV-2: 192.168.1.11 /24
RSRV-3: 192.168.1.12 /24
VIP-B: 192.168.1.30 /24
VIP-b: https:web-B
Protocol: HTTPS
Client-A: 172.16.128.10
Client-B: 172.16.128.15
I have attached an sketch depicting the connectivity.
As always any feedback/Suggestions will be greatly apprecaited.
Cheers,
Raman AzizianRaman,
This type of config is no problem. What the server is doing is virtual web hosting. The server would have two different web services running for the same IP, but each listening for a unique host header.
From an IP point of view both connections would be destined to the rserver address on port 80, but in the http header they would have two different Host headers.
one for www.example1.com and the second for www.example2.com. If the web server is configured correct so each host name is tied to one web service it will not have any issues.
The config you attached looks ok. The way you have the sticky group is ok doing source IP. If you use cookies for the sticky group I would suggest you create two sticky groups each with a different cookie name and add the same serverfarm to both groups. The client will only send a cookie for the domain it received it from so using the same cookie in two vips could cause problems if the same client hits both vips.
Hope that helps
Regards
Jim -
How to Check Images File Exist? in different server
Hi,
I have 10 different coldfusion server.
for example 9 server is for the web application site - for
example
http://myserverone/studentweb
the other one is for images website, just for displaying
student picture - for example
http://myserverimage/studentpicture.
the purpose of this website is to display student picture
that i store as gif files.
from my studentweb website i will call the images from
studentpicture website as source for my image placeholder.
for example this is my code i'm calling form
http://myserverone/studentweb
website:
<img src="
http://myserverimage/studentpicture/#studentnumber#.gif"
alt="" name="studentpicture" width="160" height="200">
my problem is, if there is no specific student picture in my
studentpicture website, then the placeholder will display an X (
mean the images not found )
how do i prevent the X to display?
how do i using coldfusion or any kind of way to check if the
images exist on that website ( different server ), so if the images
is not found, i can display a default images? i can do this if i'm
calling the website in the same server, but not using a different
server.
this is like using other website images for your own personal
website and sometimes the owner delete the images from their
website, and i want to display my own images if that images been
removed from the source website.
anyone have done this before?
thanks for suggestion and guide...
haire1. Use CFHTTP with method="HEAD".
2. See, if the HTTP status code is 200.
The head-method is of course more efficient, as it doesn't
need to "get" the message body. However, a status code of 200 is
possible even when the requested image file is no longer on the
server. -
File not getting created in a different server
My requirement.
I have written a code in the BI system and now need to write an empty file (say a.done)in a directory /interfaces of PI system.
I wrote using open data set and close data set however the file (a.done) is not getting created in the PI system even though the directory /interfaces exist.
When I give any directory of that of BI system ,the file(a.done) is getting created i.e the file is getting created on the same server and not on the different server.
Is there any function module or any other way for the file to get generated in the PI system.
Please explain with an example.
Regards,
VishTry to use search FTP in se37 or checkout the below FM
CALL FUNCTION 'EPS_FTP_MPUT'
EXPORTING
RFC_DESTINATION =
* FILE_MASK = ' '
* LOCAL_DIRECTORY = ' '
* REMOTE_DIRECTORY = ' '
* OVERWRITE_MODE = ' '
* TEXT_MODE = ' '
* TRANSMISSION_MONITOR = 'X'
* RECORDS_PER_TRANSFER = 10
* MONITOR_TITLE =
* MONITOR_TEXT1 =
* MONITOR_TEXT2 =
* PROGRESS_TEXT =
* IMPORTING
* LOCAL_DIRECTORY =
* REMOTE_DIRECTORY =
* LOCAL_SYSTEM_INFO =
* REMOTE_SYSTEM_INFO =
* TABLES
* FILE_LIST =
* EXCEPTIONS
* CONNECTION_FAILED = 1
* INVALID_VERSION = 2
* INVALID_ARGUMENTS = 3
* GET_DIR_LIST_FAILED = 4
* FILE_TRANSFER_FAILED = 5
* STOPPED_BY_USER = 6
* OTHERS = 7
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF. -
Anonymous Custom WCF Web Service
Can anyone let me know how to allow a WCF web service, rolled out within a feature, to allow anonymous access?
I'm not much of a WCF guru I'm afraid.
I have the web service up and running and working. But within my test harness I can create a service reference by providing the URL to the web service ending with /MEX.
However, I have to provide a NetworkCredentials object to the ClientCredentials of the proxy. I don't want this web service to require credentials - I want it to allow completely anonymous connections. I tried allowing 'Anonymous Authentication'
within IIS but that has had no affect.
It seems that no matter how hard I try I always end up getting the error message:
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM,Basic realm="<myWebSite>"'.
Any help/pointers greatly appreciated.
Kind regards,
Tom.one of the problem of custom wcf service hosted in SharePoint is how to disable anonymous access:
http://social.msdn.microsoft.com/Forums/hu-HU/sharepointdevelopmentprevious/thread/e3283575-1b32-40fb-b093-9545bf378aa4 ;
However, you just have the opposite problem, have you enabled anonymous access for your web application and site? -
I am encountering the following error when trying to connect to an Access 2013 database:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
I have Visual Studio 2013 SP3 running on Windows 8.1 64bit OS which also has Office 2013 installed (which includes MS Access 2013). My project is a WCF web service using .NET Framework 4.5.1 using any cpu as target. I have tried reluctantly
to install the older drivers as described by in the below article:
https://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix-error-the-microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=vstsdb
and also went through the "Add Data Source" wizard in the Project menu to have the connect string automatically built. Even with the automatically built connect string I can not connect to the .accdb file from within my WCF web service.
What's odd is if I use the Database Explorer in Visual Studio it has no problem connecting the my Access file. I inspected the connect string and tried to use it as well but still get the same error. Even stranger is that I have no problem connecting
to the Access DB in an ASP.NET project on the same PC. I am also able to connect to the Access file using a simple Windows Forms application. So I'm wondering if it has something to do with trying to connect to the Access file from a WCF web service
project.
What I'd like to know is if anyone has been able to get this to work in an environment as I described above as a 64bit WCF web service project? I tried to switch my project to 32bit but when I do I get a different error which reads:
System.BadImageFormatException: Could not load file or assembly 'file:
Almost to the point of trying to get this web service project done with SQL Express but would like to know if it can be done with MS Access 2013. Any information anyone can provide to help me get past this issue is greatly appreciated. Thanks.Have you installed the 64-bit Access driver on your machine? See
Data Source Names and 64-Bit Operating Systems for the differences in odbcad32. Call %SystemRoot%\system32\odbcad32.exe to check the drivers.
How do you host your service? Stand-alone or IIS or embedded to another application? Keep in mind that IIS7 runs it in its application pool which is defaullt 64bit. Thus the bad image exception, when compiling your service as 32bit.
When you need the Access database for your service to store informtation, then I would switch to SQL Server (Express) or XML files depending on your actual needs.
Also check whether your account under which your service is run has the necessary NTFS file permissions on the access file and the folder. This is getting even more complex when it's a remote folder. -
Issue with OSI PI WCF Web Service with wshttpbinding
Hi Experts,
System Details:
SAP MII 14 SP4
OSI PI Web Service: PITimeSeries
I am having issue when trying to call OSI PI web service using http post. it is returning status 0 when i am using exception handler in BLS.
Same web service works fine with basichttpbinding (SOAP 1.1) but with wshttpbinding (SOAP 1.2) it is giving error.
Following are Web config binding details for web service.
<wsHttpBinding>
<binding name="wsBinding_2011" sendTimeout="00:01:00" receiveTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
I am not sure it could be the issue with passing windows credentials.
Did anybody consumed WCF web service with wshttpbinding with security mode as Message and clientCredentialType as Windows.
Also i was trying to pass MYSAPSSO2 SSO token to service in http post but first i am not sure if this is correct windows token and second which header property of service should be mapped and i am not sure that I am going into correct direction or not.
Please let me know what i am missing.
I have tried following other options and tools:
SOAP UI: basichttpbinding works fine for wshttpbinding receiving Internal Server error in log and Response as
The security context token is expired or is not valid.
MII Web Service Action Block: basichttpbinding works fine for wshttpbinding not able to configure url through wizard because as per my discussion with other MII experts MII does not support SOAP1.2. that is one reason for using http post.
WCF Storm: both bindings works fine (There is option to select windows authentication and Impersonation level as delegation)
WCF Test Client: Both bindings works fine
Any help is appreciated.
Thanks & Regards,
Manoj BilthareHi Sam,
The web service is valid following are details of testing on various tools.
SOAP UI: basichttpbinding works fine for wshttpbinding receiving Internal Server error in log and Response as The security context token is expired or is not valid.
MII Web Service Action Block: basichttpbinding works fine for wshttpbinding not able to configure url through wizard because as per my discussion with other MII experts MII does not support SOAP1.2. that is one reason for using http post.
WCF Storm: both bindings works fine (There is option to select windows authentication and Impersonation level as delegation)
WCF Test Client: Both bindings works fine
Please let me know if additional details required.
Thanks & Regards,
Manoj Bilthare -
Hi all,
I have read already some interesting posts on Java implementation for Oracle CoD Web Services.
Somehow I am stuck and can't find a way out.
I try to access the LeadQuery command via the following code:
String sessionCookie = logon(
"https://secure-ausomxapa.crmondemand.com/Services/Integration",
username, password);
LeadStub stub;
try {
stub = new LeadStub(
"https://secure-ausomxapa.crmondemand.com/Services/Integration;jsessionid="
+ sessionCookie);
// ServiceClient client = stub._getServiceClient();
// client.getOptions().setManageSession(true);
// client.getOptions().setProperty("jsessionid", sessionCookie);
// client.getOptions().setUserName(username);
// client.getOptions().setPassword(password);
LeadQueryPage_Input leadQueryPage_Input = new LeadQueryPage_Input();
ListOfLeadQuery listOfLeadQuery = new ListOfLeadQuery();
QueryType queryType = new QueryType();
queryType.setString("LIKE 'A*'");
LeadQuery leadQuery = new LeadQuery();
leadQuery.setCompany(queryType);
listOfLeadQuery.setLead(leadQuery);
leadQueryPage_Input.setListOfLead(listOfLeadQuery);
LeadQueryPage_Output leadQueryPage_Output = stub
.LeadQueryPage(leadQueryPage_Input);
} catch (AxisFault e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
System.err.println("\n\n\n");
logoff("https://secure-ausomxapa.crmondemand.com/Services/Integration",
sessionCookie);
Logging In and Out is no problem, runs like music. But whenever LeadQueryPage is called, I just receive the following error:
org.apache.axis2.AxisFault: Server
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at crmondemand.LeadStub.LeadQueryPage(LeadStub.java:1026)
at CODconnection.main(CODconnection.java:58)
I'm using Eclipse 3.4.2 with AXIS2 1.4, and the Eclipse Plug-In for AXIS 1.3 (with some small patch to get it to work).
I downloaded the custom WSDL from Oracle CoD (CRM On Demand) Admin page and used the AXIS-Wizard in Eclipse to transform it to Java.
For that, I already tried the -g option (which is "Create everything - Client and Server" in the wizard).
Anyone has a clue what the problem might be?
Btw.: I downloaded also V1.0 WSDL to check if that works. Some problem.
Found out that just the error reporting sucks and at the end the Server missed the correct Authentification.
Funnily I just did what I read a couple of time. With this small bit of code it works:
ServiceClient client = stub._getServiceClient();
client.getOptions().setManageSession(true);
client.getOptions().setProperty(HTTPConstants.HEADER_COOKIE, "jsessionid="+sessionCookie);
client.getOptions().setUserName(username);
client.getOptions().setPassword(password);
-----You are missing the end point location. See the sample client below:
MyHelloMyHelloSOAP11PortStub stub = new MyHelloMyHelloSOAP11PortStub("http://localhost:8080/axis2/services/MyHello");
MyHelloMyHelloSOAP11PortStub.SayHello hello = new MyHelloMyHelloSOAP11PortStub.SayHello();
hello.setS("ABCD");
MyHelloMyHelloSOAP11PortStub.SayHelloResponse resp=stub.sayHello(hello);
System.out.println("Response from Web Service "+resp.get_return()); -
Problem making modified WCF web service operation compatible with old client
Hi,
I am trying to make a modified version of a a WCF web service work with old clients. The method signature looks like:
[OperationContract]
itemList GetItemList(getItemList param);
I am adding elements to the "getItemList" class which should be optional. The class is generated from XSD schema with xsd.exe (this means we are using schema-first design). The new element is:
<element name="itemOwner" type="string" maxOccurs="1" minOccurs="0"> </element>
and the new generated code in the getItemList class becomes:
private string itemOwnerField;
public string itemOwner
get {return this.itemOwnerField;}
set {this.itemOwnerField = value; }
When I look at the new WSDL it has:
<xs:element name="itemOwnerField" nillable="true" type="xs:string"/>
Now I was expecting the old client to still be able to call the new client, since the new field is nillable. The client has a service reference to the old version of the web service so it uses a C# stub. When the old client tries to invoke the new service,
I get error:
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:param. The InnerException message was 'Error in line 1 position 754. 'Element' 'itemIDField' from namespace
'http://schemas.datacontract.org/2004/07/ServerBaseAPI' is not expected. Expecting element 'itemOwnerField'.'. Please see InnerException for more details.
My interpretation is that the server side of the new service cannot deserialize the incoming message since it expects it to contain itemOwnerField. Why it that, when it is nillable according to the WSDL? What can I do to solve or work around the problem?Hi gaor.mawell,
The nillable attribute is a special attribute in the XML Schema instance namespace that provides an interoperable way to explicitly represent a null value. The receiving end can interpret these as
null, zero, and null, respectively. There is no guarantee that a third-party deserializer can make the correct interpretation, which is why this pattern is not recommended. The
DataContractSerializer class always selects the correct interpretation for missing values. So have you tried to use the DataMember's
IsRequired property? this
DataMember's
IsRequired property tells the serialization engine whether the value of itemOwnerField must be presented in the underlying XML.
For more information, please try to refer to the this artcle:
https://msdn.microsoft.com/en-us/library/aa347792(v=vs.110).aspx .
Best Regards,
Amy Peng
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. -
OC4J client with WCF Web Service using Mutual Certificates
I'm trying to generate client stubs for a WCF web service.
I tried using docs here:
http://docs.oracle.com/cd/B10464_05/web.904/b10447/tools.htm
# OC4J 9.0.4
Java sdk 1.4.2_03
cd \dev\oc4j-9.0.4\webservices\lib
- config.xml
<?xml version="1.0"?>
<web-service>
<proxy-gen>
<proxy-dir>output/clientclass/examples/webservices/simple_client</proxy-dir>
<option name="include-source">true</option>
<option name="wsdl-location">
http://xxx.xxxxx.xxx:9000/WCFTestService/Service.svc?wsdl</option>
</proxy-gen>
</web-service>
java -jar WebServicesAssembler.jar -debug
- ends with NullPointerException:
<output>
Please wait ...
..parsing top level elements
..generating client side proxy for wsdl :
http://xxx.xxxxx.xxx:9000/WCFTestService/Service.svc?wsdl
....compiling client side proxy for package :proxy
Exception in thread "main" java.lang.NullPointerException
at oracle.j2ee.ws.tools.WsAssmProxyGenerator.doCompile(WsAssmProxyGenerator.java:284)
at oracle.j2ee.ws.tools.WsAssmProxyGenerator.processProxy(WsAssmProxyGenerator.java:135)
at oracle.j2ee.ws.tools.WsAssmProxyGenerator.clientGenerate(WsAssmProxyGenerator.java:112)
at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:54)
</output>
- Then tried using Sun jdk to gen proxy:
# Just SDK
Java sdk 1.6.0_25
wsimport -keep -extension -d output -s src -p examples.webservices http://xxx.xxxxx.xxx:9000/WCFTestService/Service.svc?wsdl
<ListOfGeneratedJavaFiles>
CompositeType.java
GetData.java
GetDataResponse.java
GetDataUsingDataContract.java
GetDataUsingDataContractResponse.java
IService.java
ObjectFactory.java
package-info.java
Service.java
</ListOfGeneratedJavaFiles>
- creates the service and port, but where is the stub?
in my code I use the stub to set the certificate auth
<codeSnip>
// get the ws stub
IService_Stub serviceStub = (IService_Stub)iSampleService;
// add the credential providers to the ws stub
serviceStub._setProperty(WSSecurityContext.CREDENTIAL_PROVIDER_LIST,
credProviders);
</codeSnip>
# WebLogic 10.3.5
I'm happy to say that everything seems to work well under WebLogic 10.3.5.
I used weblogic.wsee.tools.anttasks.ClientGenTask with ant
to generate the proxy files.
<ListOfGeneratedJavaFiles>
IService.java
IService_Stub.java
Service.java
Service_Impl.java
</ListOfGeneratedJavaFiles>
I understand how to use these files and everything works.
But we need this to work in the OC4J orion server before we are ready to upgrade to WebLogic.
I have also tried OC4J 10.1.2.0.2 - same a OC4j 9.0.4 - null pointer.
I also tried Metro, but it uses wsimport, so also does not have a stub.
I'm out of ideas. Any pointers or advice are greatly appreciated.
Thank you.My guess would be that the server's certificate isn't in your client's trust-store (which defaults to "cacerts"). Chances are your senior architect has already imported the server-cert on his machine and forgotten he did so.
Grant -
Calling helper class that refrence to WCF web service
Hi I have a BizTalk projects that calls a helper class. now the helper class receive the message and a counter and is suppose via the class to create a login to a WCF
web service and then synchronize the message to this WCF web service.<o:p></o:p>
this is class:<o:p></o:p>
public static string SyncConcerto(XLANGMessage msg, int count)
SelectResponse select = (SelectResponse)msg[0].RetrieveAs(typeof(SelectResponse));
ConcertoService.ExternalMappingServiceClient concertoServ = new ConcertoService.ExternalMappingServiceClient();
ConcertoService.ExternalMappingItem extMapItem = new ConcertoService.ExternalMappingItem();
ConcertoService.ExternalMappingServiceResponse extLogonResp = new ConcertoService.ExternalMappingServiceResponse();
ConcertoService.ExternalMappingServiceResponse extSyncResp = new ConcertoService.ExternalMappingServiceResponse();
extLogonResp = concertoServ.Logon("*****", "******", true);
if (extLogonResp.StatusCode == 1)
if (count>0)
for (int i = 0; i < count; i++)
extMapItem.Attribute1 = select.SelectResult[i].CNS_CONCERTO_PROJECTSRECORDSELECT.REGION_NAME;
extMapItem.Attribute2 = select.SelectResult[i].CNS_CONCERTO_PROJECTSRECORDSELECT.PROJECT_NUMBER;
extMapItem.Attribute3 = select.SelectResult[i].CNS_CONCERTO_PROJECTSRECORDSELECT.PRODUCT_NAME;
extMapItem.ProjectName = select.SelectResult[i].CNS_CONCERTO_PROJECTSRECORDSELECT.PROJECT_NAME;
extMapItem.ProjectMgr = select.SelectResult[i].CNS_CONCERTO_PROJECTSRECORDSELECT.PM_NAME;
//extMapItem.ProjectMgr = select.SelectResult.CNS_CONCERTO_PROJECTSRECORDSELECT.PM_NAME;
extMapItem.Division = select.SelectResult[i].CNS_CONCERTO_PROJECTSRECORDSELECT.DIVISION_NAME;
extMapItem.Subject = select.SelectResult[i].CNS_CONCERTO_PROJECTSRECORDSELECT.CUSTOMER_NAME;
extMapItemArr[i] = extMapItem;
extSyncResp = concertoServ.SynchronizeExternalAttributeData(extMapItemArr);
if (extSyncResp.StatusCode == 1)
return "sync success login success";
else
return "success login sync faild";
else if (extLogonResp.StatusCode == 2)
return "TimeOut";
return "Failed";
Now it keeps throwing exception in this line of code: ConcertoService.ExternalMappingServiceClient concertoServ = new ConcertoService.ExternalMappingServiceClient();
saying he needs a valid endpoint. but he has the app.config file already that stats his endpoint.
What am I doing wrong, since I have never done a thing like that before.
And also I can't use the WCF web service in the normal BIZTALK way due to login operation he needs to do. <o:p></o:p>
Any advice on how to continue?<o:p></o:p>the WCF has a logon operation where I enter a user name and password, it doesn't return a session key meaning I can't send a message to the WCF WS (Biztalk is stateless) that doe's the logon operation and the synchronize operation. so I had to do it with
the helper class.
and Morten I know this is very bad practice but I don't have choice for now.
Morten another question since we are using Biztalk 2013 (New Enviroment) our BTSNTSvc.exe.config is empty:
<?xml version="1.0" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="BizTalk Assemblies;Developer Tools;Tracking;Tracking\interop" />
</assemblyBinding>
</runtime>
<system.runtime.remoting>
<channelSinkProviders>
<serverProviders>
<provider id="sspi" type="Microsoft.BizTalk.XLANGs.BTXEngine.SecurityServerChannelSinkProvider,Microsoft.XLANGs.BizTalk.Engine" securityPackage="ntlm" authenticationLevel="packetPrivacy" />
</serverProviders>
</channelSinkProviders>
<application>
<channels>
<channel ref="tcp" port="0" name="">
<serverProviders>
<provider ref="sspi" />
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
where do I insert my end point and how? -
Issue while adding WCF Web Service reference using Oracle APEX
Hi,
We have an issue with creating the Web Service Reference for the WCF web service:
http://dev.virtualearth.net/webservices/v1/metadata/geocodeservice/GeocodeService1.wsdl
The APEX gives the following error
“The WSDL document could not be understood by the rendering engine. Click Create Web Service Reference Manually to continue creating a reference for this service.”
Can you please tell me if creating the Web Service Reference for WCF is supported on the “out of the box“ APEX?
Environment information:
APEX 4.0.2.00.07
Database 11.2.0.3
Please note that we have tried it in APEX 4.1.1 from apex.oracle.com and the error there is different, it can connect even to ASMX wsdl.
Thank you.I don't think that is it specific to just .NET web services. I have tried with a web service created with TIBCO BusinessWorks (Middleware product) that did not work either. The wsdl validated correctly in soapUI, so I think it just must be the implementation of the parser which is looking for some specific format.
When in doubt, go with either the manual reference or with pl/sql using one of the api's. -
Setting the data source of an External List to a WCF Web Service
From SharePoint Online, I want to create/connect an External List to a SQL Azure data source. This will feed a Visio diagram so I want it to be able to refresh and dynamically retrieve
current data via Visio Services.<o:p></o:p>
I have a published WCF Web Service in place (Azure Website) connected to this database that consolidates data from multiple tables and returns a variety of generic lists. From
my readings, this should bypass the need for much of the security (e.g. secure store, etc...).
Can I do this? I'm not seeing an option to Create an ECT as in past versions to connect to this endpoint. Do I have to create something in Visual Studio to Import? Any direction
would be much appreciated.<o:p></o:p>
EdFind and increase these variables in IIS: maxRequestEntityAllowed and uploadReadAheadSize
I had a similar issue a while back due to these settings. They control data to and from ISAPI connections (of which CF is one) according to this article:
http://www.iis.net/configreference/system.webserver/serverruntime
Sorry, I cant recall off hand where exactly those settings are in IIS but a quick Google search should turn it up for you. -
Calling WCF web service from BPEL
We are getting ‘oracle.fabric.common.FabricInvocationException: Unable to invoke endpoint URI "http://<host>:<port>/services/<servicename>.svc" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 400 Bad Request’ error while calling a WCF web service from BPEL.
1. Is it possible to call a WCF webservice from BPEL.
2. The WCF service is having ‘BasicHttpBinding’ and ‘<http:NegotiateAuthentication xmlns:http="http://schemas.microsoft.com/ws/06/2004/policy/http" />’
3. Do we need to configure the SOA WS Policy in the composite xml? If yes what properties have to be set?
Thanks!
SandeepAnyone has insight on this? Is it possible to call a WCF service with NTLM authentication from SOA.
Thanks!
Sandeep -
JAX-RPC: Web service where both server /and/ client are services?
I'm considering a two-way Web service in an application that I'm designing and would appreciate any insight from prior experience.
This will be a standard client-server application, where the server broadcasts messages and the client, in turn, can request further information about the messages that it receives (think RSS-style updates, but with more interaction). [strong]However[strong], instead of having the client poll the server for new messages, I'd like to have the client register itself with the server as a message listener. The server is currently implemented as a Web service on port X. I'd like the client to register itself with the server, and then receive messages on port Y.
I'm considering a design like the following (note the directions of the inheritance arrows):
( Server class ) --<-- ( RemoteServerImpl class ) -->-- / RemoteServer interface /
|
( Listener class ) --<-- ( RemoteListenerImpl class ) -->-- / RemoteListener interface /Some considerations:
* In both cases, the client and server are broken out into an interface and two classes. The non-Remote classes implement all of the functionality. The RemoteX interfaces declare the methods that will be exposed via RPC, and the RemoteXImpl classes are empty subclasses of the non-Remote classes.
* In order to register itself with the Server, the Listener must be passed in as a method parameter, and thus conform to the JAX-RPC specification for value types. However, value types can't implement java.rmi.Remote.
* Only the Server and Listener know anything about each other.
* This application can be run either remotely or locally, depending on how the Server and Listener are instantiated. For the latter, they're instantiated directly and the listener is registered with the Server. For the latter, the RemoteX interfaces will point to the service stubs.
* I don't see an easy way to allow both the Server and the Listener to have references to each other (at least now without some casting magic), since one of them will have to conform to the value type specification, which requires that all of its fields must be valid JAX-RPC types.
I've got the Server portions implemented and working, and am now going to turn to the Listener stuff. Can anybody see a fundamental problem with this design, or can suggest something better?Hi There,
Because web services are fundamentally a Services-oriented architecture, and not an Object-oriented one, you are unable to pass objects by reference (only by value) hence the design decision to not allow rmi.Remote objects to be sent across the wire. The best way would be to abstract an object which does itself not represent a server, but a route to a server (lets call it ServerPointer). This must contain address, port, service info, etc.
Now, in your Server class, create a factory method which takes a ServerPointer, and returns a reference to a
remote server, e.g. protected Server createServer( ServerPointer p ) (using the necessary APIs to get such a reference)
Hope this helps...
Maybe you are looking for
-
Macbook pro can't find hard drive!
I'm using a 13" Macbook Pro on Lion OS and yesterday I was working on my thesis and I opened up Pinterest for what must have been thirty seconds before I was met with the pinwheel of death. I waited five minutes, and then I decided todo a manual shut
-
I started importing all my pictures into Aperture and have been debating whether to use a managed or referenced library. I'm leaning toward referenced, but before import everything that way, I do a couple of "test drives". In Aperture, I moved a pho
-
Is mac mini compatible with samsung smart tv
is mac mini compatible with samsung smart tv
-
Hi all, I am using MapViewer Ver11_1_1_B090416. In our webapp we perfrom serveral queries using binding variables in predefined MVThemeBasedFOI like this: var objThemebasedfoi = new MVThemeBasedFOI("dynquery", strTheme); objThemeBasedFOI.setQueryPara
-
What is facetime audio and can I use it to make free international calls between iPhones?
what is facetime audio and can I use it to make free international calls between iphones?