hi,
I wants to use MediaBin's Java APIs. i am facing Authentication problem when I try to connect MediaBin server from Apache Server. Is there any NTLM setup?. If so, pls let me know the steps.
Following is the JSP that I am using,
<%@ page import="java.util.*, java.lang.*,java.io.*" %>
<%@ page import="com.mediabin.www.*" %>
<%@ page import="javax.xml.rpc.holders.*" %>
<%
String strURL="
http://133.176.65.49/MediaBinWebService/MediaBinServer.asmx"; String strDomain="MYUSERGROUP";
String strUsername="Administrator";
String strPassword="";
MediaBinServer myService = new MediaBinServerLocator();
MediaBinServerSoap myServiceStub;
if( strURL.equals("") )
{
//...using the URL specified in the WSDL
myServiceStub = myService.getMediaBinServerSoap();
}
else
{
//...or we can specify the URL of the web service
java.net.URL serviceURL = new java.net.URL( strURL );
myServiceStub = myService.getMediaBinServerSoap( serviceURL );
}
org.apache.axis.client.Stub t = (org.apache.axis.client.Stub) myServiceStub;
String strUser = "";
if( strDomain.equals("") )
strUser = strUsername;
else
strUser = strDomain + "\\" + strUsername;
((org.apache.axis.client.Stub) myServiceStub).setUsername( strUser );
((org.apache.axis.client.Stub) myServiceStub).setPassword( strPassword );
MBAsset asset = null;
asset = myServiceStub.getAsset("0000000003.jpg");
out.print(asset);
%>
*******************************************************getting following error**********************************************
*******************************************************getting following error**********************************************
HTTP????? 500 -
________________________________________
type ??????
?????
?? The server encountered an internal error () that prevented it from fulfilling this request.
??
(401)Access Denied
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
org.apache.axis.client.Call.invokeEngine(Call.java:2564)
org.apache.axis.client.Call.invoke(Call.java:2553)
org.apache.axis.client.Call.invoke(Call.java:2248)
org.apache.axis.client.Call.invoke(Call.java:2171)
org.apache.axis.client.Call.invoke(Call.java:1691)
com.mediabin.
www.MediaBinServerSoapStub.getAsset(MediaBinServerSoapStub.java:2924) org.apache.jsp.MediaBin.index_jsp._jspService(index_jsp.java:84)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
?? ?????????????????Apache Tomcat/5.0.25????????????
________________________________________
Please help me with some program or detail guide